Repository navigation
script: Support all pseudo-elements in getComputedStyle - #49804
Merged
Merged
Conversation
|
🔨 Triggering try run (#42924618943) for Linux (WPT) |
|
Test results for linux-wpt from try job (#42924618943): Flaky unexpected result (12)
Stable unexpected results that are known to be intermittent (9)
Stable unexpected results (16)
|
|
|
Loirooriol
force-pushed
the
getComputedStyle-pseudo
branch
from
November 11, 2026 00:28
b88126d to
dbd25ce
Compare
Loirooriol
marked this pull request as ready for review
November 11, 2026 00:35
mrobinson
approved these changes
Nov 11, 2026
We were hardcoding support for just some pseudo-elements. Now the logic will ask Stylo to parse the provided string as a valid pseudo-element. Signed-off-by: Oriol Brufau <[email protected]>
Loirooriol
force-pushed
the
getComputedStyle-pseudo
branch
from
November 11, 2026 00:40
dbd25ce to
e5c9445
Compare
Loirooriol
enabled auto-merge
November 11, 2026 00:42
|
Someone thinks this change could be added to the monthly blog post! To help with this, we need someone to answer the following questions: 😄
If this change is part of a broader feature/project please make sure the PR description contains a Please add Thanks for helping us prepare the monthly blog post! ❤️ |
Contributor
Author
|
@servo-highfive monthly update answer
|
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 11, 2026
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.
We were hardcoding support for just some pseudo-elements. Now the logic will ask Stylo to parse the provided string as a valid pseudo-element. In particular, these are now supported:
::backdrop::file-selector-button::first-letterand:first-letter::first-lineand:first-line(requires enablinglayout.css.first-line.enabled)::details-content::color-swatch::slider-fill::slider-thumb::slider-track::-moz-progress-barTesting: Various tests improve
Fixes: #43095