mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
script: Implement CSSStyleSheet constructor (#36521)
https://drafts.csswg.org/cssom/#dom-cssstylesheet-cssstylesheet Testing: covered by WPT This is part of #36162 Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
372fd04b23
commit
10f6f50c61
11 changed files with 127 additions and 38 deletions
|
@ -26,9 +26,6 @@
|
|||
[Attempting to insert a CSSNestedDeclaration rule into top-level @media rule]
|
||||
expected: FAIL
|
||||
|
||||
[Attempting to insert a CSSNestedDeclaration rule into a stylesheet]
|
||||
expected: FAIL
|
||||
|
||||
[Attempting to insert a CSSNestedDeclaration rule, empty block]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -2,12 +2,8 @@
|
|||
[@import rules are not parsed in CSSStyleSheet.replaceSync]
|
||||
expected: FAIL
|
||||
|
||||
[Inserting an @import rule through insertRule on a constructed stylesheet throws an exception]
|
||||
expected: FAIL
|
||||
|
||||
[@import rules are not parsed in CSSStyleSheet.replace]
|
||||
expected: FAIL
|
||||
|
||||
[@import rules should not trigger any loads.]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -5,9 +5,6 @@
|
|||
[new CSSStyleSheet produces empty CSSStyleSheet]
|
||||
expected: FAIL
|
||||
|
||||
[title can be set in the CSSStyleSheet constructor]
|
||||
expected: FAIL
|
||||
|
||||
[CSSStyleSheet.replace produces Promise<CSSStyleSheet>]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -56,9 +53,6 @@
|
|||
[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
|
||||
|
||||
|
@ -74,21 +68,12 @@
|
|||
[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
|
||||
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
[CSSStyleSheet-modify-after-removal.html]
|
||||
[Modify constructed sheet from removed iframe]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[insertRule-across-context.html]
|
||||
[The constructor of inserted rule object must be from iframe for new CSSStyleSheet()]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue