diff --git a/tests/wpt/include.ini b/tests/wpt/include.ini index cb951f65960..fe7cfb4d3ef 100644 --- a/tests/wpt/include.ini +++ b/tests/wpt/include.ini @@ -221,6 +221,8 @@ skip: true skip: false [selection] skip: false +[shadow-dom] + skip: false [streams] skip: true [readable-streams] diff --git a/tests/wpt/meta/__dir__.ini b/tests/wpt/meta/__dir__.ini index 9b2752221fc..1061efabecf 100644 --- a/tests/wpt/meta/__dir__.ini +++ b/tests/wpt/meta/__dir__.ini @@ -1 +1 @@ -prefs: ["dom.imagebitmap.enabled:true", "dom.offscreen_canvas.enabled:true"] +prefs: ["dom.imagebitmap.enabled:true", "dom.offscreen_canvas.enabled:true", "dom.shadowdom.enabled:true"] diff --git a/tests/wpt/meta/css/css-animations/cancel-animation-shadow-slot-invalidation.html.ini b/tests/wpt/meta/css/css-animations/cancel-animation-shadow-slot-invalidation.html.ini index 001271124aa..691bc0385f1 100644 --- a/tests/wpt/meta/css/css-animations/cancel-animation-shadow-slot-invalidation.html.ini +++ b/tests/wpt/meta/css/css-animations/cancel-animation-shadow-slot-invalidation.html.ini @@ -1,2 +1,2 @@ [cancel-animation-shadow-slot-invalidation.html] - expected: TIMEOUT + expected: CRASH diff --git a/tests/wpt/meta/css/css-cascade/layer-slotted-rule.html.ini b/tests/wpt/meta/css/css-cascade/layer-slotted-rule.html.ini index 2b19f6fdf0e..4eb703de442 100644 --- a/tests/wpt/meta/css/css-cascade/layer-slotted-rule.html.ini +++ b/tests/wpt/meta/css/css-cascade/layer-slotted-rule.html.ini @@ -1,2 +1,2 @@ [layer-slotted-rule.html] - expected: FAIL + expected: CRASH diff --git a/tests/wpt/meta/css/css-cascade/revert-layer-014.html.ini b/tests/wpt/meta/css/css-cascade/revert-layer-014.html.ini index 3bd4bc7ec81..5a9f9a704fa 100644 --- a/tests/wpt/meta/css/css-cascade/revert-layer-014.html.ini +++ b/tests/wpt/meta/css/css-cascade/revert-layer-014.html.ini @@ -1,2 +1,2 @@ [revert-layer-014.html] - expected: FAIL + expected: CRASH diff --git a/tests/wpt/meta/css/css-cascade/scope-shadow-sharing.html.ini b/tests/wpt/meta/css/css-cascade/scope-shadow-sharing.html.ini index 7d09e3b651b..ba5f030033e 100644 --- a/tests/wpt/meta/css/css-cascade/scope-shadow-sharing.html.ini +++ b/tests/wpt/meta/css/css-cascade/scope-shadow-sharing.html.ini @@ -1,2 +1,2 @@ [scope-shadow-sharing.html] - expected: TIMEOUT + expected: FAIL diff --git a/tests/wpt/meta/css/css-content/quotes-slot-scoping.html.ini b/tests/wpt/meta/css/css-content/quotes-slot-scoping.html.ini new file mode 100644 index 00000000000..7f62608409e --- /dev/null +++ b/tests/wpt/meta/css/css-content/quotes-slot-scoping.html.ini @@ -0,0 +1,2 @@ +[quotes-slot-scoping.html] + expected: CRASH diff --git a/tests/wpt/meta/css/css-display/display-contents-shadow-dom-1.html.ini b/tests/wpt/meta/css/css-display/display-contents-shadow-dom-1.html.ini index 405f40b8961..38b2543b2ca 100644 --- a/tests/wpt/meta/css/css-display/display-contents-shadow-dom-1.html.ini +++ b/tests/wpt/meta/css/css-display/display-contents-shadow-dom-1.html.ini @@ -1,2 +1,2 @@ [display-contents-shadow-dom-1.html] - expected: TIMEOUT + expected: CRASH diff --git a/tests/wpt/meta/css/css-lists/counter-list-item-slot-order.html.ini b/tests/wpt/meta/css/css-lists/counter-list-item-slot-order.html.ini index 0275be6b338..641c85bc5e6 100644 --- a/tests/wpt/meta/css/css-lists/counter-list-item-slot-order.html.ini +++ b/tests/wpt/meta/css/css-lists/counter-list-item-slot-order.html.ini @@ -1,2 +1,2 @@ [counter-list-item-slot-order.html] - expected: FAIL + expected: CRASH diff --git a/tests/wpt/meta/css/css-lists/counter-slot-order-scoping.html.ini b/tests/wpt/meta/css/css-lists/counter-slot-order-scoping.html.ini index 9e06a8d2ccb..be6bf3ce595 100644 --- a/tests/wpt/meta/css/css-lists/counter-slot-order-scoping.html.ini +++ b/tests/wpt/meta/css/css-lists/counter-slot-order-scoping.html.ini @@ -1,2 +1,2 @@ [counter-slot-order-scoping.html] - expected: FAIL + expected: CRASH diff --git a/tests/wpt/meta/css/css-lists/counter-slot-order.html.ini b/tests/wpt/meta/css/css-lists/counter-slot-order.html.ini index 96ad6ce2679..0d273e984c6 100644 --- a/tests/wpt/meta/css/css-lists/counter-slot-order.html.ini +++ b/tests/wpt/meta/css/css-lists/counter-slot-order.html.ini @@ -1,2 +1,2 @@ [counter-slot-order.html] - expected: FAIL + expected: CRASH diff --git a/tests/wpt/meta/css/css-pseudo/selection-universal-shadow-dom.html.ini b/tests/wpt/meta/css/css-pseudo/selection-universal-shadow-dom.html.ini index 05dbc4d0d3c..33e1ccb830e 100644 --- a/tests/wpt/meta/css/css-pseudo/selection-universal-shadow-dom.html.ini +++ b/tests/wpt/meta/css/css-pseudo/selection-universal-shadow-dom.html.ini @@ -1,2 +1,3 @@ [selection-universal-shadow-dom.html] - expected: ERROR + [getComputedStyle() for #target ::selection] + expected: FAIL diff --git a/tests/wpt/meta/css/css-text-decor/text-decoration-propagation-shadow.html.ini b/tests/wpt/meta/css/css-text-decor/text-decoration-propagation-shadow.html.ini new file mode 100644 index 00000000000..6d7f865e2a2 --- /dev/null +++ b/tests/wpt/meta/css/css-text-decor/text-decoration-propagation-shadow.html.ini @@ -0,0 +1,2 @@ +[text-decoration-propagation-shadow.html] + expected: CRASH diff --git a/tests/wpt/meta/css/css-text/white-space/remove-slotted-with-whitespace-sibling.html.ini b/tests/wpt/meta/css/css-text/white-space/remove-slotted-with-whitespace-sibling.html.ini index 9470360b861..b1aab92307e 100644 --- a/tests/wpt/meta/css/css-text/white-space/remove-slotted-with-whitespace-sibling.html.ini +++ b/tests/wpt/meta/css/css-text/white-space/remove-slotted-with-whitespace-sibling.html.ini @@ -1,2 +1,2 @@ [remove-slotted-with-whitespace-sibling.html] - expected: FAIL + expected: CRASH diff --git a/tests/wpt/meta/css/css-transitions/shadow-root-insertion.html.ini b/tests/wpt/meta/css/css-transitions/shadow-root-insertion.html.ini deleted file mode 100644 index bc9bbbcf84d..00000000000 --- a/tests/wpt/meta/css/css-transitions/shadow-root-insertion.html.ini +++ /dev/null @@ -1,3 +0,0 @@ -[shadow-root-insertion.html] - [addition of a shadow root should not cancel in-flight transitions] - expected: FAIL diff --git a/tests/wpt/meta/css/css-values/vh_not_refreshing_on_chrome.html.ini b/tests/wpt/meta/css/css-values/vh_not_refreshing_on_chrome.html.ini new file mode 100644 index 00000000000..26435e28b09 --- /dev/null +++ b/tests/wpt/meta/css/css-values/vh_not_refreshing_on_chrome.html.ini @@ -0,0 +1,2 @@ +[vh_not_refreshing_on_chrome.html] + expected: FAIL diff --git a/tests/wpt/meta/css/cssom-view/checkVisibility.html.ini b/tests/wpt/meta/css/cssom-view/checkVisibility.html.ini index 18ed07cad79..beb953175e0 100644 --- a/tests/wpt/meta/css/cssom-view/checkVisibility.html.ini +++ b/tests/wpt/meta/css/cssom-view/checkVisibility.html.ini @@ -1,5 +1,5 @@ [checkVisibility.html] - expected: ERROR + expected: CRASH [checkVisibility on visibility:hidden element.] expected: FAIL diff --git a/tests/wpt/meta/css/cssom-view/elementsFromPoint-shadowroot.html.ini b/tests/wpt/meta/css/cssom-view/elementsFromPoint-shadowroot.html.ini index 815ad5a126e..afee4028a0f 100644 --- a/tests/wpt/meta/css/cssom-view/elementsFromPoint-shadowroot.html.ini +++ b/tests/wpt/meta/css/cssom-view/elementsFromPoint-shadowroot.html.ini @@ -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 diff --git a/tests/wpt/meta/css/cssom/CSSStyleSheet-constructable.html.ini b/tests/wpt/meta/css/cssom/CSSStyleSheet-constructable.html.ini index bc365827bf2..895b75dedf3 100644 --- a/tests/wpt/meta/css/cssom/CSSStyleSheet-constructable.html.ini +++ b/tests/wpt/meta/css/cssom/CSSStyleSheet-constructable.html.ini @@ -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] + 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 diff --git a/tests/wpt/meta/css/cssom/adoptedstylesheets-observablearray.html.ini b/tests/wpt/meta/css/cssom/adoptedstylesheets-observablearray.html.ini index 4f496f3b4d8..3425edabdcf 100644 --- a/tests/wpt/meta/css/cssom/adoptedstylesheets-observablearray.html.ini +++ b/tests/wpt/meta/css/cssom/adoptedstylesheets-observablearray.html.ini @@ -1,5 +1,4 @@ [adoptedstylesheets-observablearray.html] - expected: ERROR [document.adoptedStyleSheets should allow mutation in-place] expected: FAIL diff --git a/tests/wpt/meta/css/cssom/getComputedStyle-detached-subtree.html.ini b/tests/wpt/meta/css/cssom/getComputedStyle-detached-subtree.html.ini index 64ae954c49d..4e778a09a70 100644 --- a/tests/wpt/meta/css/cssom/getComputedStyle-detached-subtree.html.ini +++ b/tests/wpt/meta/css/cssom/getComputedStyle-detached-subtree.html.ini @@ -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 diff --git a/tests/wpt/meta/css/cssom/insert-dir-rule-crash.html.ini b/tests/wpt/meta/css/cssom/insert-dir-rule-crash.html.ini new file mode 100644 index 00000000000..fb88575a052 --- /dev/null +++ b/tests/wpt/meta/css/cssom/insert-dir-rule-crash.html.ini @@ -0,0 +1,2 @@ +[insert-dir-rule-crash.html] + expected: CRASH diff --git a/tests/wpt/meta/css/cssom/insert-dir-rule-in-iframe-crash.html.ini b/tests/wpt/meta/css/cssom/insert-dir-rule-in-iframe-crash.html.ini new file mode 100644 index 00000000000..38f550a4d27 --- /dev/null +++ b/tests/wpt/meta/css/cssom/insert-dir-rule-in-iframe-crash.html.ini @@ -0,0 +1,2 @@ +[insert-dir-rule-in-iframe-crash.html] + expected: CRASH diff --git a/tests/wpt/meta/css/cssom/selectorText-modification-restyle-002.html.ini b/tests/wpt/meta/css/cssom/selectorText-modification-restyle-002.html.ini index 695bb6f259d..f91a321b6ea 100644 --- a/tests/wpt/meta/css/cssom/selectorText-modification-restyle-002.html.ini +++ b/tests/wpt/meta/css/cssom/selectorText-modification-restyle-002.html.ini @@ -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 diff --git a/tests/wpt/meta/css/selectors/focus-visible-020.html.ini b/tests/wpt/meta/css/selectors/focus-visible-020.html.ini index 321bd03002c..09f6ffa6058 100644 --- a/tests/wpt/meta/css/selectors/focus-visible-020.html.ini +++ b/tests/wpt/meta/css/selectors/focus-visible-020.html.ini @@ -1,2 +1,3 @@ [focus-visible-020.html] - expected: ERROR + [:focus-visible doesn't match on ShadowRoot] + expected: FAIL diff --git a/tests/wpt/meta/css/selectors/focus-within-shadow-001.html.ini b/tests/wpt/meta/css/selectors/focus-within-shadow-001.html.ini index 2959e7669e0..dd5cd13f188 100644 --- a/tests/wpt/meta/css/selectors/focus-within-shadow-001.html.ini +++ b/tests/wpt/meta/css/selectors/focus-within-shadow-001.html.ini @@ -1,2 +1,2 @@ [focus-within-shadow-001.html] - expected: TIMEOUT + expected: CRASH diff --git a/tests/wpt/meta/css/selectors/focus-within-shadow-002.html.ini b/tests/wpt/meta/css/selectors/focus-within-shadow-002.html.ini index 30ca33ff38e..9cdf27b3a0b 100644 --- a/tests/wpt/meta/css/selectors/focus-within-shadow-002.html.ini +++ b/tests/wpt/meta/css/selectors/focus-within-shadow-002.html.ini @@ -1,2 +1,2 @@ [focus-within-shadow-002.html] - expected: TIMEOUT + expected: CRASH diff --git a/tests/wpt/meta/css/selectors/focus-within-shadow-003.html.ini b/tests/wpt/meta/css/selectors/focus-within-shadow-003.html.ini index a6171ebf3a1..719aa5550ba 100644 --- a/tests/wpt/meta/css/selectors/focus-within-shadow-003.html.ini +++ b/tests/wpt/meta/css/selectors/focus-within-shadow-003.html.ini @@ -1,2 +1,2 @@ [focus-within-shadow-003.html] - expected: TIMEOUT + expected: CRASH diff --git a/tests/wpt/meta/css/selectors/focus-within-shadow-004.html.ini b/tests/wpt/meta/css/selectors/focus-within-shadow-004.html.ini index 1e7c496360e..ce65b3672bd 100644 --- a/tests/wpt/meta/css/selectors/focus-within-shadow-004.html.ini +++ b/tests/wpt/meta/css/selectors/focus-within-shadow-004.html.ini @@ -1,2 +1,2 @@ [focus-within-shadow-004.html] - expected: TIMEOUT + expected: CRASH diff --git a/tests/wpt/meta/css/selectors/focus-within-shadow-005.html.ini b/tests/wpt/meta/css/selectors/focus-within-shadow-005.html.ini index 585263b0ac8..6e6bb268a4b 100644 --- a/tests/wpt/meta/css/selectors/focus-within-shadow-005.html.ini +++ b/tests/wpt/meta/css/selectors/focus-within-shadow-005.html.ini @@ -1,2 +1,2 @@ [focus-within-shadow-005.html] - expected: TIMEOUT + expected: CRASH diff --git a/tests/wpt/meta/css/selectors/focus-within-shadow-006.html.ini b/tests/wpt/meta/css/selectors/focus-within-shadow-006.html.ini index dcd9173bb94..3bc435fa254 100644 --- a/tests/wpt/meta/css/selectors/focus-within-shadow-006.html.ini +++ b/tests/wpt/meta/css/selectors/focus-within-shadow-006.html.ini @@ -1,2 +1,2 @@ [focus-within-shadow-006.html] - expected: TIMEOUT + expected: CRASH diff --git a/tests/wpt/meta/css/selectors/i18n/lang-pseudo-class-across-shadow-boundaries.html.ini b/tests/wpt/meta/css/selectors/i18n/lang-pseudo-class-across-shadow-boundaries.html.ini index f2f324e2968..ea34cadc7ee 100644 --- a/tests/wpt/meta/css/selectors/i18n/lang-pseudo-class-across-shadow-boundaries.html.ini +++ b/tests/wpt/meta/css/selectors/i18n/lang-pseudo-class-across-shadow-boundaries.html.ini @@ -1,2 +1,2 @@ [lang-pseudo-class-across-shadow-boundaries.html] - expected: FAIL + expected: CRASH diff --git a/tests/wpt/meta/css/selectors/invalidation/host-context-pseudo-class-in-has.html.ini b/tests/wpt/meta/css/selectors/invalidation/host-context-pseudo-class-in-has.html.ini index b9fdb7253a3..bad4fa74e54 100644 --- a/tests/wpt/meta/css/selectors/invalidation/host-context-pseudo-class-in-has.html.ini +++ b/tests/wpt/meta/css/selectors/invalidation/host-context-pseudo-class-in-has.html.ini @@ -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 diff --git a/tests/wpt/meta/css/selectors/invalidation/host-pseudo-class-in-has.html.ini b/tests/wpt/meta/css/selectors/invalidation/host-pseudo-class-in-has.html.ini index 299f3de8b3a..f42d2f4afaa 100644 --- a/tests/wpt/meta/css/selectors/invalidation/host-pseudo-class-in-has.html.ini +++ b/tests/wpt/meta/css/selectors/invalidation/host-pseudo-class-in-has.html.ini @@ -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 diff --git a/tests/wpt/meta/css/selectors/is-where-shadow.html.ini b/tests/wpt/meta/css/selectors/is-where-shadow.html.ini index c40b2d623ae..f92f34dac22 100644 --- a/tests/wpt/meta/css/selectors/is-where-shadow.html.ini +++ b/tests/wpt/meta/css/selectors/is-where-shadow.html.ini @@ -1,2 +1,2 @@ [is-where-shadow.html] - expected: ERROR + expected: CRASH diff --git a/tests/wpt/meta/css/selectors/scope-selector.html.ini b/tests/wpt/meta/css/selectors/scope-selector.html.ini deleted file mode 100644 index 1686321d4c0..00000000000 --- a/tests/wpt/meta/css/selectors/scope-selector.html.ini +++ /dev/null @@ -1,2 +0,0 @@ -[scope-selector.html] - expected: ERROR diff --git a/tests/wpt/meta/custom-elements/CustomElementRegistry.html.ini b/tests/wpt/meta/custom-elements/CustomElementRegistry.html.ini index 7b862b2d71c..7b89879bb01 100644 --- a/tests/wpt/meta/custom-elements/CustomElementRegistry.html.ini +++ b/tests/wpt/meta/custom-elements/CustomElementRegistry.html.ini @@ -1,4 +1,5 @@ [CustomElementRegistry.html] + expected: CRASH [customElements.define must upgrade elements in the shadow-including tree order] expected: FAIL diff --git a/tests/wpt/meta/custom-elements/adopted-callback.html.ini b/tests/wpt/meta/custom-elements/adopted-callback.html.ini index a0618c2b21c..e6783ac9315 100644 --- a/tests/wpt/meta/custom-elements/adopted-callback.html.ini +++ b/tests/wpt/meta/custom-elements/adopted-callback.html.ini @@ -1,7 +1,4 @@ [adopted-callback.html] - [Inserting a custom element into a shadow tree in the document of the template elements must enqueue and invoke adoptedCallback] - expected: FAIL - [Inserting the shadow host of a custom element into the document of the template elements must enqueue and invoke adoptedCallback] expected: FAIL @@ -14,12 +11,6 @@ [Moving the