Skip to content

Commit

Permalink
Demix DocumentOrShadowRoot (#9045)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elchi3 authored Feb 12, 2021
1 parent c1141c5 commit 76b06cd
Show file tree
Hide file tree
Showing 3 changed files with 611 additions and 134 deletions.
50 changes: 0 additions & 50 deletions api/ShadowRoot.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,56 +121,6 @@
}
}
},
"documentorshadowroot": {
"__compat": {
"description": "Features included from the <code>DocumentOrShadowRoot</code> mixin",
"support": {
"chrome": {
"version_added": "53"
},
"chrome_android": {
"version_added": "53"
},
"edge": {
"version_added": "79"
},
"firefox": {
"version_added": "63"
},
"firefox_android": {
"version_added": "63"
},
"ie": {
"version_added": false
},
"opera": {
"version_added": "40"
},
"opera_android": {
"version_added": "41"
},
"safari": {
"version_added": false,
"notes": "Features still implemented on the <a href='https://developer.mozilla.org/docs/Web/API/Document'>Document</a> interface"
},
"safari_ios": {
"version_added": false,
"notes": "Features still implemented on the <a href='https://developer.mozilla.org/docs/Web/API/Document'>Document</a> interface"
},
"samsunginternet_android": {
"version_added": "6.0"
},
"webview_android": {
"version_added": "53"
}
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
}
},
"host": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/ShadowRoot/host",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,55 +1,9 @@
{
"api": {
"DocumentOrShadowRoot": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/DocumentOrShadowRoot",
"support": {
"chrome": {
"version_added": "1"
},
"chrome_android": {
"version_added": "18"
},
"edge": {
"version_added": "12"
},
"firefox": {
"version_added": "1"
},
"firefox_android": {
"version_added": "4"
},
"ie": {
"version_added": "4"
},
"opera": {
"version_added": "≤12.1"
},
"opera_android": {
"version_added": "≤12.1"
},
"safari": {
"version_added": "4"
},
"safari_ios": {
"version_added": "3.2"
},
"samsunginternet_android": {
"version_added": "1.0"
},
"webview_android": {
"version_added": "1"
}
},
"status": {
"experimental": true,
"standard_track": true,
"deprecated": false
}
},
"Document": {
"activeElement": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/DocumentOrShadowRoot/activeElement",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/activeElement",
"support": {
"chrome": {
"version_added": "1"
Expand Down Expand Up @@ -89,15 +43,15 @@
}
},
"status": {
"experimental": true,
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"adoptedStyleSheets": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/DocumentOrShadowRoot/adoptedStyleSheets",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets",
"support": {
"chrome": {
"version_added": "73"
Expand Down Expand Up @@ -137,15 +91,15 @@
}
},
"status": {
"experimental": true,
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"caretPositionFromPoint": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/DocumentOrShadowRoot/caretPositionFromPoint",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/caretPositionFromPoint",
"support": {
"chrome": {
"version_added": false
Expand Down Expand Up @@ -185,15 +139,15 @@
}
},
"status": {
"experimental": true,
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"elementFromPoint": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/DocumentOrShadowRoot/elementFromPoint",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/elementFromPoint",
"support": {
"chrome": {
"version_added": "1",
Expand Down Expand Up @@ -239,15 +193,15 @@
}
},
"status": {
"experimental": true,
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"elementsFromPoint": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/DocumentOrShadowRoot/elementsFromPoint",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/elementsFromPoint",
"support": {
"chrome": {
"version_added": "43",
Expand All @@ -257,11 +211,17 @@
"version_added": "43",
"notes": "Before Chrome 66, this method returned <code>null</code> when the element was a child of a host node. See <a href='https://crbug.com/759947'>issue 759947</a>."
},
"edge": {
"version_added": "12",
"alternative_name": "msElementsFromPoint",
"notes": "Returns a <code>NodeList</code> instead of an array. See <a href='https://msdn.microsoft.com/en-us/library/hh772121(v=vs.85).aspx'>the MSDN documentation</a>. Returns <code>null</code> when the point provided has no elements beneath it (e.g., when given a point outside the document)."
},
"edge": [
{
"version_added": "79"
},
{
"version_added": "12",
"version_removed": "79",
"alternative_name": "msElementsFromPoint",
"notes": "Returns a <code>NodeList</code> instead of an array. See <a href='https://msdn.microsoft.com/en-us/library/hh772121(v=vs.85).aspx'>the MSDN documentation</a>. Returns <code>null</code> when the point provided has no elements beneath it (e.g., when given a point outside the document)."
}
],
"firefox": {
"version_added": "46"
},
Expand Down Expand Up @@ -295,15 +255,15 @@
}
},
"status": {
"experimental": true,
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"fullscreenElement": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/DocumentOrShadowRoot/fullscreenElement",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/fullscreenElement",
"support": {
"chrome": [
{
Expand Down Expand Up @@ -382,14 +342,24 @@
"version_added": true,
"prefix": "ms"
},
"opera": {
"version_added": "40",
"prefix": "webkit"
},
"opera_android": {
"version_added": "41",
"prefix": "webkit"
},
"opera": [
{
"version_added": "58"
},
{
"version_added": "40",
"prefix": "webkit"
}
],
"opera_android": [
{
"version_added": "50"
},
{
"version_added": "41",
"prefix": "webkit"
}
],
"safari": {
"version_added": true,
"prefix": "webkit"
Expand All @@ -400,10 +370,15 @@
"partial_implementation": true,
"notes": "Full-screen mode is only supported on the iPad."
},
"samsunginternet_android": {
"version_added": "6.0",
"prefix": "webkit"
},
"samsunginternet_android": [
{
"version_added": "10.0"
},
{
"version_added": "6.0",
"prefix": "webkit"
}
],
"webview_android": [
{
"version_added": "71"
Expand All @@ -423,7 +398,7 @@
},
"getSelection": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/DocumentOrShadowRoot/getSelection",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/getSelection",
"support": {
"chrome": {
"version_added": "1"
Expand Down Expand Up @@ -463,15 +438,15 @@
}
},
"status": {
"experimental": true,
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"pointerLockElement": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/DocumentOrShadowRoot/pointerLockElement",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/pointerLockElement",
"support": {
"chrome": {
"version_added": "37"
Expand All @@ -489,7 +464,7 @@
"version_added": "50"
},
"ie": {
"version_added": true
"version_added": false
},
"opera": {
"version_added": "24"
Expand All @@ -498,10 +473,10 @@
"version_added": "24"
},
"safari": {
"version_added": true
"version_added": "10.1"
},
"safari_ios": {
"version_added": true
"version_added": false
},
"samsunginternet_android": {
"version_added": "3.0"
Expand All @@ -511,15 +486,15 @@
}
},
"status": {
"experimental": true,
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
},
"styleSheets": {
"__compat": {
"mdn_url": "https://developer.mozilla.org/docs/Web/API/DocumentOrShadowRoot/styleSheets",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/Document/styleSheets",
"support": {
"chrome": {
"version_added": "1"
Expand Down Expand Up @@ -559,7 +534,7 @@
}
},
"status": {
"experimental": true,
"experimental": false,
"standard_track": true,
"deprecated": false
}
Expand Down
Loading

0 comments on commit 76b06cd

Please sign in to comment.