Repository navigation
script: Implement CSSStyleSheet.replace - #38244
Merged
Merged
Conversation
Signed-off-by: Jo Steven Novaryo <[email protected]>
|
🔨 Triggering try run (#16480424106) for Linux (WPT) |
CSSStyleSheet.replaceCSSStyleSheet.replace
|
Test results for linux-wpt from try job (#16480424106): Flaky unexpected result (16)
Stable unexpected results that are known to be intermittent (20)
Stable unexpected results (2)
|
|
|
jdm
approved these changes
Jul 24, 2025
|
|
||
| /// <https://drafts.csswg.org/cssom/#synchronously-replace-the-rules-of-a-cssstylesheet> | ||
| fn ReplaceSync(&self, text: USVString) -> Result<(), Error> { | ||
| // Step 1. If the constructed flag is not set throw a NotAllowedError |
Member
There was a problem hiding this comment.
Could you update the text in this comment to match the spec?
Member
Author
There was a problem hiding this comment.
Thanks, I have updated it!
stevennovaryo
force-pushed
the
cssstylesheet-replace
branch
from
July 24, 2025 09:40
56804a4 to
5d22d07
Compare
Signed-off-by: Jo Steven Novaryo <[email protected]>
stevennovaryo
force-pushed
the
cssstylesheet-replace
branch
from
July 24, 2025 13:21
5d22d07 to
1342991
Compare
Member
|
We're just missing the test result changes so this can merge. |
Signed-off-by: Jo Steven Novaryo <[email protected]>
Member
Author
Sorry, I was in hurry yesterday. Updated the WPT changes, thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement
CSSStyleSheet.replace#dom-cssstylesheet-replace with disallow modification flag #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: #36162