Closed Bug 1844333 Opened 1 year ago Closed 1 year ago

[css-color] Color components with inf and nan values should be clipped and replace as needed.

Categories

(Core :: CSS Parsing and Computation, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: tlouw, Assigned: tlouw)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

In some color formats, components should replace nan values with 0 and infinity values to valid bounds depending on the component.

Assignee: nobody → tlouw
Severity: -- → S3
Priority: -- → P3
Blocks: 1836557

Deals with many cases where colors have to be clamped within bounds like
lab() and oklab().

Also replace nan values with 0.0 where appropriate and replaces inf
values with finite values depending on which component and color space
it is.

Attachment #9344619 - Attachment description: WIP: Bug 1844333 - Ensure color component values are clamped correctly and handles inf and nan. r=#layout-reviewers → Bug 1844333 - Ensure color component values are clamped correctly and handles inf and nan. r=#layout-reviewers
Attachment #9344619 - Attachment description: Bug 1844333 - Ensure color component values are clamped correctly and handles inf and nan. r=#layout-reviewers → WIP: Bug 1844333 - Ensure color component values are clamped correctly and handles inf and nan. r=#layout-reviewers
Attachment #9344619 - Attachment description: WIP: Bug 1844333 - Ensure color component values are clamped correctly and handles inf and nan. r=#layout-reviewers → WIP: Bug 1844333 - Ensure colors are in the correct syntax and keeps values in bounds. r=#layout-reviewers
Attachment #9344619 - Attachment description: WIP: Bug 1844333 - Ensure colors are in the correct syntax and keeps values in bounds. r=#layout-reviewers → WIP: Bug 1844333 - Convert inf/nan color components when needed r=#layout-reviewers
Attachment #9344619 - Attachment description: WIP: Bug 1844333 - Convert inf/nan color components when needed r=#layout-reviewers → Bug 1844333 - Convert inf/nan color components when needed r=#layout-reviewers
Attachment #9344619 - Attachment description: Bug 1844333 - Convert inf/nan color components when needed r=#layout-reviewers → WIP: Bug 1844333 - Convert inf/nan color components when needed r=#layout-reviewers
Attachment #9344619 - Attachment description: WIP: Bug 1844333 - Convert inf/nan color components when needed r=#layout-reviewers → Bug 1844333 - Clamp and normalize color values to appropriate ranges. r=#layout-reviewers
Attachment #9344619 - Attachment description: Bug 1844333 - Clamp and normalize color values to appropriate ranges. r=#layout-reviewers → WIP: Bug 1844333 - Clamp and normalize color values to appropriate ranges. r=#layout-reviewers
Attachment #9344619 - Attachment description: WIP: Bug 1844333 - Clamp and normalize color values to appropriate ranges. r=#layout-reviewers → Bug 1844333 - Clamp and normalize color values to appropriate ranges. r=#layout-reviewers
Pushed by tlouw@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/de6dcf5a4c0e Clamp and normalize color values to appropriate ranges. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/41351 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: