Bug 271136 - [css-cascade] revert-layer does not rollback unregistered custom properties
Summary: [css-cascade] revert-layer does not rollback unregistered custom properties
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 17
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, HasReduction, InRadar
Depends on:
Blocks:
 
Reported: 2024-03-17 20:34 PDT by Nathan Knowler
Modified: 2024-04-02 05:47 PDT (History)
8 users (show)

See Also:


Attachments
Test reduction for custom properties and revert-layer (1.93 KB, text/html)
2024-03-17 20:34 PDT, Nathan Knowler
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Knowler 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.
Comment 1 Radar WebKit Bug Importer 2024-03-24 20:35:45 PDT
<rdar://problem/125332655>
Comment 2 Ahmad Saleem 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'.