Bug 241433 - Make CSS custom properties that are invalid at computed value time guaranteed-invalid
Summary: Make CSS custom properties that are invalid at computed value time guaranteed...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 15
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-06-08 13:30 PDT by Shaw Jia
Modified: 2022-06-15 13:31 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shaw Jia 2022-06-08 13:30:19 PDT
Same as this Firefox bug: https://phabricator.services.mozilla.com/D116460

Also codepen demo: https://codepen.io/Miragecraft/pen/XWaLxNb

In short, when assigning an invalid CSS custom property to another custom property, it makes the final value unset (which means "inherit" for custom properties) instead of initial.
Comment 1 Bruno Stasse 2022-06-09 05:35:08 PDT
WebKit's behaviour now differs from both Gecko's and Blink's, causing an interoperability issue.
Comment 2 Radar WebKit Bug Importer 2022-06-15 13:31:13 PDT
<rdar://problem/95234259>