[csswg-drafts] [css-images] Computed gradient colors (#4042)

ewilligers has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-images] Computed gradient colors ==
Suppose an author sets various `<image>` properties to gradients with color keywords, e.g. `linear-gradient(45deg, blue, orange)` . Should `getComputedStyle()` results show gradients with color keywords or `rgb` functions?

Firefox gives `rgb` functions. Blink, Edge 18 and Safari give color keywords.
https://jsfiddle.net/ericwilligers/qzp4wy03/

Should we change the "Computed value" text for [shape-outside](https://drafts.csswg.org/css-shapes-1/#shape-outside-property)

> ..., the `<image>` with its URI made absolute, otherwise as specified.

=>

> ..., the `<image>` with its URI made absolute and colors computed, otherwise as specified.

[background-image](https://drafts.csswg.org/css-backgrounds/#background-image) and [border-image-source](https://drafts.csswg.org/css-backgrounds/#border-image-source) would need a similar change if they referenced the CSS Images 3 definition of `<image>`, but they currently don't.


No change would be needed for [list-style-image](https://drafts.csswg.org/css-lists-3/#propdef-list-style-image)

> computed value of the `<image>`, or `none`






Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4042 using your GitHub account

Received on Wednesday, 19 June 2019 02:14:07 UTC