Skip to content

[css-colors-4] Clip negative whiteness/blackness of <hwb()>? #10368

@cdoublev

Description

@cdoublev

Browsers serialize hwb(0 -10 0) with rgb(255, 0, 0). The conversion from hwb to rgb returns [1, -0.1, -0.1].

Where is clipping now specified in the specification?

I presume it should still apply otherwise resolving infinity to 255 after the conversion to rgb() would not make sense. Should it apply before or after the conversion to rgb()? Should it only apply when it is not mixed with another color?

Whiteness/blackness was clipped:

Note: I asked a similar question for saturation > 100 in hwb() but the issue is closed.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions