mirror of
https://github.com/servo/servo.git
synced 2025-09-03 11:38:22 +01:00
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:
parent
c73e4baca2
commit
910e8dc89f
207 changed files with 4735 additions and 260 deletions
|
@ -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
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
[adoptedstylesheets-observablearray.html]
|
||||
expected: ERROR
|
||||
[document.adoptedStyleSheets should allow mutation in-place]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
2
tests/wpt/meta/css/cssom/insert-dir-rule-crash.html.ini
vendored
Normal file
2
tests/wpt/meta/css/cssom/insert-dir-rule-crash.html.ini
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
[insert-dir-rule-crash.html]
|
||||
expected: CRASH
|
2
tests/wpt/meta/css/cssom/insert-dir-rule-in-iframe-crash.html.ini
vendored
Normal file
2
tests/wpt/meta/css/cssom/insert-dir-rule-in-iframe-crash.html.ini
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
[insert-dir-rule-in-iframe-crash.html]
|
||||
expected: CRASH
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue