NEW 271136
[css-cascade] revert-layer does not rollback unregistered custom properties
https://bugs.webkit.org/show_bug.cgi?id=271136
Summary [css-cascade] revert-layer does not rollback unregistered custom properties
Nathan Knowler
Reported 2024-03-17 20:34:53 PDT
Created attachment 470414 [details] Test reduction for custom properties and revert-layer I expect that using the `revert-layer` keyword for a custom property would roll it back to the previous layer’s specified value, however, for unregistered custom properties it seems to ignore any specified values and computes as nothing. Registered custom properties seem to work as expected whether or not they have an initial value. Chrome and Firefox both work as expected.
Attachments
Test reduction for custom properties and revert-layer (1.93 KB, text/html)
2024-03-17 20:34 PDT, Nathan Knowler
no flags
Radar WebKit Bug Importer
Comment 1 2024-03-24 20:35:45 PDT
Ahmad Saleem
Comment 2 2024-04-02 05:47:54 PDT
It is reproducible in Safari Technology Preview 191, while Chrome Canary 125 and Firefox Nightly 126 match each other and do show 'Unregistered custom property' in 'DeepPink' like other while Safari show it in 'White'.
Note You need to log in before you can comment on or make changes to this bug.