Skip to content

Commit 4093508

Browse files
zrhoffmanSkyBlack1225
authored andcommitted
Use declarative shadow DOM polyfill for :nth-child(... of <selector>) in shadow root reftest
Although the polyfill script was already included, it was not called (and we still need it until bug 1712140 is resolved). Differential Revision: https://phabricator.services.mozilla.com/D171937 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1821269 gecko-commit: 4caae26ec168abb38da7a1a57b96641b53247083 gecko-reviewers: emilio
1 parent 1834b9d commit 4093508

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

css/selectors/invalidation/nth-child-in-shadow-root.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
</template>
1818
</div>
1919
<script>
20+
polyfill_declarative_shadow_dom(host);
2021
host.offsetTop;
2122
host.shadowRoot.getElementById('toggler').classList.toggle('foo');
2223
</script>

css/selectors/invalidation/nth-last-child-in-shadow-root.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
</template>
2020
</div>
2121
<script>
22+
polyfill_declarative_shadow_dom(host);
2223
host.offsetTop;
2324
host.shadowRoot.getElementById("toggler").classList.toggle("foo");
2425
</script>

0 commit comments

Comments
 (0)