Enable Shadow DOM for tests (#34299)

* Enable shadowdom implementation in all tests.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

* Update test expectations.

Signed-off-by: Josh Matthews <josh@joshmatthews.net>

---------

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2024-11-20 00:57:50 -05:00 committed by GitHub
parent c73e4baca2
commit 910e8dc89f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
207 changed files with 4735 additions and 260 deletions

View file

@ -1,2 +1,2 @@
[cancel-animation-shadow-slot-invalidation.html]
expected: TIMEOUT
expected: CRASH

View file

@ -1,2 +1,2 @@
[layer-slotted-rule.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,2 @@
[revert-layer-014.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,2 @@
[scope-shadow-sharing.html]
expected: TIMEOUT
expected: FAIL

View file

@ -0,0 +1,2 @@
[quotes-slot-scoping.html]
expected: CRASH

View file

@ -1,2 +1,2 @@
[display-contents-shadow-dom-1.html]
expected: TIMEOUT
expected: CRASH

View file

@ -1,2 +1,2 @@
[counter-list-item-slot-order.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,2 @@
[counter-slot-order-scoping.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,2 @@
[counter-slot-order.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,3 @@
[selection-universal-shadow-dom.html]
expected: ERROR
[getComputedStyle() for #target ::selection]
expected: FAIL

View file

@ -0,0 +1,2 @@
[text-decoration-propagation-shadow.html]
expected: CRASH

View file

@ -1,2 +1,2 @@
[remove-slotted-with-whitespace-sibling.html]
expected: FAIL
expected: CRASH

View file

@ -1,3 +0,0 @@
[shadow-root-insertion.html]
[addition of a shadow root should not cancel in-flight transitions]
expected: FAIL

View file

@ -0,0 +1,2 @@
[vh_not_refreshing_on_chrome.html]
expected: FAIL

View file

@ -1,5 +1,5 @@
[checkVisibility.html]
expected: ERROR
expected: CRASH
[checkVisibility on visibility:hidden element.]
expected: FAIL

View file

@ -1,2 +1,6 @@
[elementsFromPoint-shadowroot.html]
expected: ERROR
[elementsFromPoint on the document root should not return elements in shadow trees]
expected: FAIL
[elementsFromPoint on a shadow root should include elements in that shadow tree]
expected: FAIL

View file

@ -1,2 +1,96 @@
[CSSStyleSheet-constructable.html]
expected: ERROR
[document.adoptedStyleSheets should initially have length 0.]
expected: FAIL
[new CSSStyleSheet produces empty CSSStyleSheet]
expected: FAIL
[title can be set in the CSSStyleSheet constructor]
expected: FAIL
[CSSStyleSheet.replace produces Promise<CSSStyleSheet>]
expected: FAIL
[Constructed style sheets can be applied on document]
expected: FAIL
[Constructed style sheets can be applied on shadow root]
expected: FAIL
[Re-attaching shadow host with adopted stylesheets work]
expected: FAIL
[Attaching a shadow root that already has adopted stylesheets work]
expected: FAIL
[Re-attaching shadow host and updating attributes work]
expected: FAIL
[Changes to constructed stylesheets through CSSOM is reflected]
expected: FAIL
[Constructed stylesheet can be used and modified in multiple TreeScopes]
expected: FAIL
[Stylesheets constructed on the main Document cannot be used in iframes]
expected: FAIL
[Stylesheet constructed on iframe cannot be used in the main Document]
expected: FAIL
[Adding non-constructed stylesheet to AdoptedStyleSheets is not allowed when the owner document of the stylesheet is in the same document tree as the AdoptedStyleSheets]
expected: FAIL
[Adding non-constructed stylesheet to AdoptedStyleSheets is not allowed when the owner document of the stylesheet and the AdoptedStyleSheets are in different document trees]
expected: FAIL
[CSSStyleSheet.replaceSync replaces stylesheet text synchronously]
expected: FAIL
[CSSStyleSheet.replaceSync correctly updates the style of its adopters synchronously]
expected: FAIL
[Adopted sheets are ordered after non-adopted sheets in the shadow root]
expected: FAIL
[Adopted sheets are ordered after non-adopted sheets in the document]
expected: FAIL
[Inserting an @import rule through insertRule on a constructed stylesheet throws an exception]
expected: FAIL
[CSSStyleSheet.replaceSync should not trigger any loads from @import rules]
expected: FAIL
[CSSStyleSheet.replace allows, but ignores, import rule inside]
expected: FAIL
[CSSStyleSheet.replace ignores @import rule but still loads other rules]
expected: FAIL
[CSSStyleSheet.replaceSync allows, but ignores, import rule inside]
expected: FAIL
[CSSStyleSheet.replace does not reject on failed imports]
expected: FAIL
[Cloning a shadow host will not clone shadow root, and also adoptedStyleSheets]
expected: FAIL
[Importing a shadow host will not copy shadow root, and also adoptedStyleSheets]
expected: FAIL
[Adopting a shadow host will empty adoptedStyleSheets if adopting to a different document]
expected: FAIL
[Adopting a shadow host's ancestor will empty adoptedStyleSheets if adopting to a different document]
expected: FAIL
[Forcing a style update after adding an adopted stylesheet on a disconnected shadow root should not crash.]
expected: FAIL
[Modifying an adopted stylesheet on a disconnected shadow root should not crash.]
expected: FAIL
[Constructing a sheet with the default base URL uses the constructor document's base URL for CSS rules]
expected: FAIL

View file

@ -1,5 +1,4 @@
[adoptedstylesheets-observablearray.html]
expected: ERROR
[document.adoptedStyleSheets should allow mutation in-place]
expected: FAIL

View file

@ -1,5 +1,4 @@
[getComputedStyle-detached-subtree.html]
expected: ERROR
[getComputedStyle returns no style for element in non-rendered iframe (display: none) from iframe's window]
expected: FAIL
@ -8,3 +7,12 @@
[getComputedStyle returns no style for detached element]
expected: FAIL
[getComputedStyle returns no style for element outside the flat tree]
expected: FAIL
[getComputedStyle returns no style for descendant outside the flat tree]
expected: FAIL
[getComputedStyle returns no style for shadow tree outside of flattened tree]
expected: FAIL

View file

@ -0,0 +1,2 @@
[insert-dir-rule-crash.html]
expected: CRASH

View file

@ -0,0 +1,2 @@
[insert-dir-rule-in-iframe-crash.html]
expected: CRASH

View file

@ -1,2 +1,6 @@
[selectorText-modification-restyle-002.html]
expected: ERROR
[Check initial color.]
expected: FAIL
[Check that color changes correctly after shadow stylesheet selector and #container class is changed.]
expected: FAIL

View file

@ -1,2 +1,3 @@
[focus-visible-020.html]
expected: ERROR
[:focus-visible doesn't match on ShadowRoot]
expected: FAIL

View file

@ -1,2 +1,2 @@
[focus-within-shadow-001.html]
expected: TIMEOUT
expected: CRASH

View file

@ -1,2 +1,2 @@
[focus-within-shadow-002.html]
expected: TIMEOUT
expected: CRASH

View file

@ -1,2 +1,2 @@
[focus-within-shadow-003.html]
expected: TIMEOUT
expected: CRASH

View file

@ -1,2 +1,2 @@
[focus-within-shadow-004.html]
expected: TIMEOUT
expected: CRASH

View file

@ -1,2 +1,2 @@
[focus-within-shadow-005.html]
expected: TIMEOUT
expected: CRASH

View file

@ -1,2 +1,2 @@
[focus-within-shadow-006.html]
expected: TIMEOUT
expected: CRASH

View file

@ -1,2 +1,2 @@
[lang-pseudo-class-across-shadow-boundaries.html]
expected: FAIL
expected: CRASH

View file

@ -1,2 +1,18 @@
[host-context-pseudo-class-in-has.html]
expected: ERROR
[Before adding 'a' to #host_parent: Check #subject1 color]
expected: FAIL
[Before adding 'a' to #host_parent: Check #subject2 color]
expected: FAIL
[After adding 'a' to #host_parent: Check #subject1 color]
expected: FAIL
[After adding 'a' to #host_parent: Check #subject2 color]
expected: FAIL
[After removing 'a' from #host_parent: Check #subject1 color]
expected: FAIL
[After removing 'a' from #host_parent: Check #subject2 color]
expected: FAIL

View file

@ -1,2 +1,12 @@
[host-pseudo-class-in-has.html]
expected: ERROR
[Before adding 'a' to #host: Check #subject1 color]
expected: FAIL
[Before adding 'a' to #host: Check #subject2 color]
expected: FAIL
[After adding 'a' to #host: Check #subject1 color]
expected: FAIL
[After adding 'a' to #host: Check #subject2 color]
expected: FAIL

View file

@ -1,2 +1,2 @@
[is-where-shadow.html]
expected: ERROR
expected: CRASH

View file

@ -1,2 +0,0 @@
[scope-selector.html]
expected: ERROR