Closed
Bug 1925572
Opened 1 year ago
Closed 1 month ago
[css-color] Optimize validation of parsed color functions for relative colors.
Categories
(Core :: CSS Parsing and Computation, enhancement)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
153 Branch
| Tracking | Status | |
|---|---|---|
| firefox153 | --- | fixed |
People
(Reporter: tlouw, Assigned: sajidanwar)
Details
Attachments
(1 file)
Right now we are checking for a valid ColorFunction after the whole color was parsed. This can be improved by checking for the allowed components (r, g, b, h, s, l, a, b, alpha, etc.) when parsing a leaf node in calc and also checking whether the calc nodes have valid units, e.g. color channel keywords always resolve to numbers and can't be added to degrees or some other unit.
| Assignee | ||
Comment 1•1 month ago
|
||
Updated•1 month ago
|
Assignee: nobody → sajidanwar94
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/ebc67fe1ae3a
https://hg.mozilla.org/integration/autoland/rev/45c32fcdf248
Improve parsing and validation of channel keywords in relative colors. r=firefox-style-system-reviewers,tlouw,emilio
Pushed by csabou@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/fac7ee2b1285
https://hg.mozilla.org/integration/autoland/rev/075d9b59cd91
Revert "Bug 1925572 - Improve parsing and validation of channel keywords in relative colors. r=firefox-style-system-reviewers,tlouw,emilio" for causing flag related failures.
Comment 4•1 month ago
|
||
Backed out for causing flag related failures.
Failure logs:
Flags: needinfo?(sajidanwar94)
| Assignee | ||
Comment 5•1 month ago
|
||
Thanks, very silly typo, should have caught the failing build on Phabricator. Will be pushing an update shortly.
Flags: needinfo?(sajidanwar94)
Pushed by ealvarez@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/9302a5cf43db
https://hg.mozilla.org/integration/autoland/rev/1b7357f55ca1
Improve parsing and validation of channel keywords in relative colors. r=firefox-style-system-reviewers,tlouw,emilio
Comment 7•1 month ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
status-firefox153:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
Updated•1 month ago
|
QA Whiteboard: [qa-triage-done-c154/b153]
You need to log in
before you can comment on or make changes to this bug.
Description
•