Skip to content

[css-color-4] Expected outcome for channels with infinity or -infinity as value #14027

@romainmenke

Description

@romainmenke

What is the expected outcome in these cases?

color( srgb calc(infinity) 1 0 )
color( srgb calc(-infinity) 1 0 )
color( xyz calc(infinity) 1 0 )
color( xyz calc(-infinity) 1 0 )

Currently each engine does something different.

I think Firefox makes the most sense:

color( srgb calc(infinity) 1 0 ) /* bright yellow */
color( srgb calc(-infinity) 1 0 ) /* bright green */
color( xyz calc(infinity) 1 0 ) /* bright pink */
color( xyz calc(-infinity) 1 0 ) /* bright green */

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions