mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
script: Implement CSSStyleSheet.replace
(#38244)
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>
This commit is contained in:
parent
928934d4b0
commit
1d896699a4
5 changed files with 92 additions and 19 deletions
|
@ -137,7 +137,8 @@ DOMInterfaces = {
|
|||
},
|
||||
|
||||
'CSSStyleSheet': {
|
||||
'canGc': ['AddRule', 'DeleteRule', 'GetCssRules', 'GetRules', 'InsertRule', 'RemoveRule'],
|
||||
'inRealms': ['Replace'],
|
||||
'canGc': ['AddRule', 'DeleteRule', 'GetCssRules', 'GetRules', 'InsertRule', 'RemoveRule', 'Replace'],
|
||||
},
|
||||
|
||||
'Crypto': {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue