script: Support different colorspaces for <input type=color>#42279
Merged
TimvdLippe merged 3 commits intoservo:mainfrom Feb 2, 2026
Merged
script: Support different colorspaces for <input type=color>#42279TimvdLippe merged 3 commits intoservo:mainfrom
<input type=color>#42279TimvdLippe merged 3 commits intoservo:mainfrom
Conversation
Signed-off-by: Simon Wülker <[email protected]>
simonwuelker
commented
Feb 1, 2026
| @@ -8,15 +8,9 @@ | |||
| [Testing the empty string with color space 'limited-srgb' and with alpha (value)] | |||
Contributor
Author
There was a problem hiding this comment.
Every test scenario here is executed twice, once with input.setAttribute("value", "foo") and once with "input.value = "foo". We only pass the the setAttribute ones for some reason, I'll investigate this more in a followup.
|
🔨 Triggering try run (#21571458853) for Linux (WPT) |
650961b to
d4c43e7
Compare
|
Test results for linux-wpt from try job (#21571458853): Flaky unexpected result (38)
Stable unexpected results that are known to be intermittent (27)
Stable unexpected results (2)
|
|
|
Signed-off-by: Simon Wülker <[email protected]>
2f8ed28 to
44bfcc1
Compare
Signed-off-by: Simon Wülker <[email protected]>
44bfcc1 to
813fc02
Compare
TimvdLippe
approved these changes
Feb 2, 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.
This change adds support for the
colorspaceattribute on color inputs and implements serialization of the input value accordingly.The color picker from servoshell doesn't yet support non-rgb colorspaces (and neither does the embedding API), so we convert to and from rgb when communicating with the embedder.
Testing: New tests start to pass