NEW 250325
Determine when calc() should be preserved for specified value serialization
https://bugs.webkit.org/show_bug.cgi?id=250325
Summary Determine when calc() should be preserved for specified value serialization
Sam Weinig
Reported 2023-01-09 09:21:11 PST
Currently there is a lack of clarity on when we should be preserving calc() for specified values. For instance, we preserve it for `width` but not for `color`. This tracks getting an answer from the CSS WG on the issue and can be used to host test cases.
Attachments
Test (780 bytes, text/html)
2023-01-09 09:22 PST, Sam Weinig
no flags
Sam Weinig
Comment 1 2023-01-09 09:22:29 PST
Sam Weinig
Comment 2 2023-01-09 09:23:29 PST
Filed https://github.com/w3c/csswg-drafts/issues/8290 to track the issue with the WG.
Sam Weinig
Comment 3 2023-01-09 12:47:33 PST
So the answer is we should always be preserving calc() in the specified values, and our behavior for colors in the test case is wrong. In practice this means we should be really remove all of the "Raw" helpers in the CSS property parser and ensure we have mechanisms to preserve calc in the respective CSSValue types.
Radar WebKit Bug Importer
Comment 4 2023-01-16 09:22:15 PST
Note You need to log in before you can comment on or make changes to this bug.