From 230e43039c48c8720e6b01fdbe74b07911c6a766 Mon Sep 17 00:00:00 2001 From: Queen Vinyl Darkscratch Date: Tue, 10 Aug 2021 00:53:59 -0700 Subject: [PATCH] Add missing features for DOMRect API (#11679) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR is a part of a project to add missing interfaces and interface features to BCD that are from an active spec (including WICG specs) and is supported in at least one browser. This particular PR adds the missing features of the DOMRect API, populating the results using data from the [mdn-bcd-collector](https://mdn-bcd-collector.appspot.com) project (v3.2.1). Tests Used: https://mdn-bcd-collector.appspot.com/tests/api/DOMRect Co-authored-by: Philip Jägenstedt --- api/DOMRect.json | 192 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 192 insertions(+) diff --git a/api/DOMRect.json b/api/DOMRect.json index c9c6b342c84b42..76d34345621513 100644 --- a/api/DOMRect.json +++ b/api/DOMRect.json @@ -225,6 +225,102 @@ } } }, + "height": { + "__compat": { + "spec_url": "https://drafts.fxtf.org/geometry/#dom-domrect-height", + "support": { + "chrome": { + "version_added": "2" + }, + "chrome_android": { + "version_added": "18" + }, + "edge": { + "version_added": "12" + }, + "firefox": { + "version_added": "3" + }, + "firefox_android": { + "version_added": "4" + }, + "ie": { + "version_added": "4" + }, + "opera": { + "version_added": "9.5" + }, + "opera_android": { + "version_added": "10.1" + }, + "safari": { + "version_added": "4" + }, + "safari_ios": { + "version_added": "3.2" + }, + "samsunginternet_android": { + "version_added": "1.0" + }, + "webview_android": { + "version_added": "2" + } + }, + "status": { + "experimental": false, + "standard_track": true, + "deprecated": false + } + } + }, + "width": { + "__compat": { + "spec_url": "https://drafts.fxtf.org/geometry/#dom-domrect-width", + "support": { + "chrome": { + "version_added": "2" + }, + "chrome_android": { + "version_added": "18" + }, + "edge": { + "version_added": "12" + }, + "firefox": { + "version_added": "3" + }, + "firefox_android": { + "version_added": "4" + }, + "ie": { + "version_added": "4" + }, + "opera": { + "version_added": "9.5" + }, + "opera_android": { + "version_added": "10.1" + }, + "safari": { + "version_added": "4" + }, + "safari_ios": { + "version_added": "3.2" + }, + "samsunginternet_android": { + "version_added": "1.0" + }, + "webview_android": { + "version_added": "2" + } + }, + "status": { + "experimental": false, + "standard_track": true, + "deprecated": false + } + } + }, "worker_support": { "__compat": { "description": "Available in workers", @@ -272,6 +368,102 @@ "deprecated": false } } + }, + "x": { + "__compat": { + "spec_url": "https://drafts.fxtf.org/geometry/#dom-domrect-x", + "support": { + "chrome": { + "version_added": "61" + }, + "chrome_android": { + "version_added": "61" + }, + "edge": { + "version_added": "79" + }, + "firefox": { + "version_added": "31" + }, + "firefox_android": { + "version_added": "31" + }, + "ie": { + "version_added": false + }, + "opera": { + "version_added": "48" + }, + "opera_android": { + "version_added": "45" + }, + "safari": { + "version_added": "10.1" + }, + "safari_ios": { + "version_added": "10.3" + }, + "samsunginternet_android": { + "version_added": "8.0" + }, + "webview_android": { + "version_added": "61" + } + }, + "status": { + "experimental": false, + "standard_track": true, + "deprecated": false + } + } + }, + "y": { + "__compat": { + "spec_url": "https://drafts.fxtf.org/geometry/#dom-domrect-y", + "support": { + "chrome": { + "version_added": "61" + }, + "chrome_android": { + "version_added": "61" + }, + "edge": { + "version_added": "79" + }, + "firefox": { + "version_added": "31" + }, + "firefox_android": { + "version_added": "31" + }, + "ie": { + "version_added": false + }, + "opera": { + "version_added": "48" + }, + "opera_android": { + "version_added": "45" + }, + "safari": { + "version_added": "10.1" + }, + "safari_ios": { + "version_added": "10.3" + }, + "samsunginternet_android": { + "version_added": "8.0" + }, + "webview_android": { + "version_added": "61" + } + }, + "status": { + "experimental": false, + "standard_track": true, + "deprecated": false + } + } } } }