Conversation
78ec75d to
39096af
Compare
4765f90 to
9985615
Compare
91fbcdd to
83812ce
Compare
83812ce to
c45ce85
Compare
|
I force-pushed main for the upgrade, can you rebase your changes? |
c45ce85 to
8d5a13d
Compare
8d5a13d to
d9831d4
Compare
sure, I updated. |
|
It seems you rebase the wrong one, it looks like the old code, not like c45ce85 |
|
Also, can you open a Servo PR to run tests? |
c77570d to
f8f1b1b
Compare
|
@Loirooriol ah, I've updated again.
|
f8f1b1b to
8f66ad5
Compare
|
|
||
| // Refer to spec | ||
| // <https://www.w3.org/TR/css-color-4/#css-system-colors> | ||
| // and computed style from Chrome |
There was a problem hiding this comment.
Where from Chrome? I'm seeing different values in LayoutTheme::DefaultSystemColor
Are they platform-specific ones? For what platform? Would it be better to use the default ones?
There was a problem hiding this comment.
I get the computed style from Chrome devtool in a linux device, but seem like they are slightly different across devices. Better not mention Chrome here, we can define the colors ourselves, the visual looks are similar.
There was a problem hiding this comment.
@Loirooriol AFAIK there is no default value, do you want to use value in Chromium source code? The current values are from devtool.
8f66ad5 to
812f7f1
Compare
Loirooriol
left a comment
There was a problem hiding this comment.
Sorry for the delay.
I think it's slightly weird that the colors are hardcoded from what Chrome used on your system. Possibly, in the future the resolution should happen in Servo using a trait. But I guess this looks good as a start.
Enable system color and map keyword to value according to https://w3c.github.io/csswg-drafts/css-color-4/#valdef-color-canvastext Signed-off-by: batu_hoang <longvatrong111@gmail.com>
812f7f1 to
9a047fe
Compare
@Loirooriol I see, I've rebase both PRs, look like they are ready now. |
Enable system color: - stylo PR: servo/stylo#302 - Update WPT expectation - Update UA styleshee to use system color value --------- Signed-off-by: batu_hoang <longvatrong111@gmail.com>
Enable system color: - stylo PR: servo/stylo#302 - Update WPT expectation - Update UA styleshee to use system color value --------- Signed-off-by: batu_hoang <longvatrong111@gmail.com>
Enable system color and map keyword to value according to: https://w3c.github.io/csswg-drafts/css-color-4/#valdef-color-canvastext Values not mentioned are set to default. Servo PR: servo/servo#42529 Signed-off-by: batu_hoang <longvatrong111@gmail.com>
Enable system color and map keyword to value according to: https://w3c.github.io/csswg-drafts/css-color-4/#valdef-color-canvastext Values not mentioned are set to default. Servo PR: servo/servo#42529 Signed-off-by: batu_hoang <longvatrong111@gmail.com>
…reviewers,dshin This imports servo/stylo#302 Differential Revision: https://phabricator.services.mozilla.com/D286389
…reviewers,dshin This imports #302 Differential Revision: https://phabricator.services.mozilla.com/D286389
@Loirooriol can you explain how to implement this as a trait in Servo? I'm glad to continue |
|
See Lines 38 to 51 in f00c109 |
Enable system color and map keyword to value according to:
https://w3c.github.io/csswg-drafts/css-color-4/#valdef-color-canvastext
Values not mentioned are set to default.
Servo PR: servo/servo#42529