CSS relative colors not working with math functions
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Tracking
()
People
(Reporter: hazdiego, Assigned: tlouw)
References
(Blocks 1 open bug)
Details
Steps to reproduce:
Visit https://jsbin.com/fadonasapu/edit?html,output
Actual results:
Text is black
Expected results:
Text should be green
Comment 1•25 days ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::CSS Parsing and Computation' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•24 days ago
|
||
So this is because parse_number_argument tries to eagerly resolve the arguments to numbers, which isn't doable for colors generally.
In order to fix this we'd need to propagate them further in the calc tree, much like we do for e.g. hypot()
here.
Tiaan, do you have cycles to look at this? Seems it should be straight-forward.
Assignee | ||
Comment 3•16 days ago
|
||
This came up in color-4 implementation as well and was not super trivial back then, but after the relative color refactors, it might be, will have to investigate this again.
Assignee | ||
Updated•16 days ago
|
Description
•