Closed Bug 1813481 Opened 2 years ago Closed 2 years ago

Allow 'none' keyword as color component

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
113 Branch
Tracking Status
firefox113 --- fixed

People

(Reporter: tlouw, Assigned: tlouw)

References

Details

Attachments

(2 files)

The keyword none is allowed to be passed as a component to any color format and the value of those components then defaults to 0.

https://drafts.csswg.org/css-color-4/#missing

Depends on: css-color-4
Blocks: css-color-4
No longer depends on: css-color-4
Assignee: nobody → tlouw

In stead of having the css parser construct a color in it's own format
and then converting it to what Gecko needs to perform operations, we now
construct a Gecko friendly color type directly.

Attachment #9318385 - Attachment description: WIP: Bug 1813481 - Use abstract color parser r=emilio,#layout-reviewers → Bug 1813481 - Use abstract color parser r=emilio,#layout-reviewers
Attachment #9318385 - Attachment description: Bug 1813481 - Use abstract color parser r=emilio,#layout-reviewers → WIP: Bug 1813481 - Use abstract color parser r=emilio,#layout-reviewers

Make use of the new changes in the cssparser that allows 'none' keywords
in color components where allowed. We store the none values as 0.0 (as
per the spec) and mark the components with the flags. This way we don't
have to check anything on the components before doing calculations.

Depends on D170187

Attachment #9318385 - Attachment description: WIP: Bug 1813481 - Use abstract color parser r=emilio,#layout-reviewers → Bug 1813481 - Use abstract color parser r=emilio,#layout-reviewers
Attachment #9318385 - Attachment description: Bug 1813481 - Use abstract color parser r=emilio,#layout-reviewers → WIP: Bug 1813481 - Use abstract color parser r=emilio,#layout-reviewers
Attachment #9318385 - Attachment description: WIP: Bug 1813481 - Use abstract color parser r=emilio,#layout-reviewers → Bug 1813481 - Use abstract color parser r=emilio,#layout-reviewers
Pushed by tlouw@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4764413c8662 Use abstract color parser r=emilio,supply-chain-reviewers
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch

This had multiple patches on the same bug number. Reopening for now

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 112 Branch → ---
Attachment #9318418 - Attachment description: WIP: Bug 1813481 - Allow 'none' keyword in color components r=emilio,#layout-reviewers → Bug 1813481 - Allow 'none' keyword in color components r=emilio,#layout-reviewers
Pushed by tlouw@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/00e23971f01b Allow 'none' keyword in color components r=emilio,supply-chain-reviewers
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/39006 for changes under testing/web-platform/tests
Upstream PR was closed without merging
Pushed by tlouw@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/deabee2364d4 Allow 'none' keyword in color components r=emilio,supply-chain-reviewers,devtools-reviewers

Fixed a failure with missing devtool db changes. Landed again.

Flags: needinfo?(tlouw)

Failure because of assertion that only hits in debug mode. Will land again.

Flags: needinfo?(tlouw)
Upstream PR was closed without merging
Pushed by tlouw@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/160ac6b5f726 Allow 'none' keyword in color components r=emilio,supply-chain-reviewers,devtools-reviewers

Backed out changeset 160ac6b5f726 (Bug 1813481) for assertion failure on nsCSSRenderingGradients.cpp.
Backout link
Push with failures <--> Wc
Failure Log

Flags: needinfo?(tlouw)
Upstream PR was closed without merging
Pushed by tlouw@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/188dde914364 Allow 'none' keyword in color components r=emilio,supply-chain-reviewers,devtools-reviewers
Flags: needinfo?(tlouw)
Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
Upstream PR merged by moz-wptsync-bot
Regressions: 1823009
Regressions: 1823015
Regressions: 1823031
Regressions: 1870415
No longer regressions: 1870415
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: