Skip to content

[css-images] Computed gradient colors #4042

Closed
@ewilligers

Description

@ewilligers

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

..., 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 and 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

computed value of the <image>, or none

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions