-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove declarative shadow DOM polyfill
Declarative shadow DOM is standard [1] and implemented in all modern browsers. This removes a polyfill that isn't needed in WPT any longer. [1] https://html.spec.whatwg.org/multipage/scripting.html#attr-template-shadowrootmode Bug: N/A Change-Id: Ie9bfdf24f75901cf9a476844a76065e5a18a6815 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5263643 Auto-Submit: Mason Freed <[email protected]> Reviewed-by: Joey Arhar <[email protected]> Commit-Queue: Mason Freed <[email protected]> Cr-Commit-Position: refs/heads/main@{#1257013}
- Loading branch information
1 parent
803ab2a
commit 5eb84ee
Showing
28 changed files
with
2 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
<link rel=help href="https://bugzilla.mozilla.org/show_bug.cgi?id=1480746"> | ||
<link rel="author" title="Zach Hoffman" href="mailto:[email protected]"> | ||
<link rel="match" href="nth-child-in-shadow-root-ref.html"> | ||
<script src="/resources/declarative-shadow-dom-polyfill.js"></script> | ||
<div id="host"> | ||
<template shadowrootmode="open"> | ||
<div id="firstChild">Should be red</div> | ||
|
@@ -19,7 +18,6 @@ | |
</template> | ||
</div> | ||
<script> | ||
polyfill_declarative_shadow_dom(host); | ||
host.offsetTop; | ||
let div = document.createElement("div"); | ||
div.appendChild(document.createTextNode("Should be green")); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
<link rel="author" title="Steinar H. Gunderson" href="[email protected]"> | ||
<link rel="match" href="nth-child-of-in-shadow-root-ref.html"> | ||
<link rel="help" href="https://drafts.csswg.org/selectors-4/#child-index"> | ||
<script src="/resources/declarative-shadow-dom-polyfill.js"></script> | ||
<div id="host"> | ||
<template shadowrootmode="open"> | ||
<style> | ||
|
@@ -17,7 +16,6 @@ | |
</template> | ||
</div> | ||
<script> | ||
polyfill_declarative_shadow_dom(host); | ||
host.offsetTop; | ||
host.shadowRoot.getElementById('toggler').classList.toggle('foo'); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
<link rel=help href="https://bugzilla.mozilla.org/show_bug.cgi?id=1480746"> | ||
<link rel="author" title="Zach Hoffman" href="mailto:[email protected]"> | ||
<link rel="match" href="nth-last-child-in-shadow-root-ref.html"> | ||
<script src="/resources/declarative-shadow-dom-polyfill.js"></script> | ||
<div id="host"> | ||
<template shadowrootmode="open"> | ||
<div id="firstChild">Should be red</div> | ||
|
@@ -19,7 +18,6 @@ | |
</template> | ||
</div> | ||
<script> | ||
polyfill_declarative_shadow_dom(host); | ||
host.offsetTop; | ||
let div = document.createElement("div"); | ||
div.appendChild(document.createTextNode("Should be green")); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
<link rel="author" title="Steinar H. Gunderson" href="mailto:[email protected]"> | ||
<link rel="match" href="nth-last-child-of-in-shadow-root-ref.html"> | ||
<link rel="help" href="https://drafts.csswg.org/selectors-4/#child-index"> | ||
<script src="/resources/declarative-shadow-dom-polyfill.js"></script> | ||
<div id="host"> | ||
<template shadowrootmode="open"> | ||
<style> | ||
|
@@ -19,7 +18,6 @@ | |
</template> | ||
</div> | ||
<script> | ||
polyfill_declarative_shadow_dom(host); | ||
host.offsetTop; | ||
host.shadowRoot.getElementById("toggler").classList.toggle("foo"); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.