mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Implement `CSSStyleSheet.replace` [#dom-cssstylesheet-replace](https://drafts.csswg.org/cssom/#dom-cssstylesheet-replace) with disallow modification flag [#concept-css-style-sheet-disallow-modification-flag](https://drafts.csswg.org/cssom/#concept-css-style-sheet-disallow-modification-flag). Basically it would behave like `replaceSync`, but we are running it asynchronously. Testing: Existing WPT coverage. Part of: https://github.com/servo/servo/issues/36162 --------- Signed-off-by: Jo Steven Novaryo <jo.steven.novaryo@huawei.com>
48 lines
1.5 KiB
INI
Vendored
48 lines
1.5 KiB
INI
Vendored
[CSSStyleSheet-constructable.html]
|
|
[new CSSStyleSheet produces empty CSSStyleSheet]
|
|
expected: FAIL
|
|
|
|
[CSSStyleSheet.replace produces Promise<CSSStyleSheet>]
|
|
expected: FAIL
|
|
|
|
[Constructed style sheets can be applied on shadow root]
|
|
expected: FAIL
|
|
|
|
[Re-attaching shadow host with adopted stylesheets 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
|
|
|
|
[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
|
|
|
|
[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
|
|
|
|
[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
|