Bug 271136

Summary: [css-cascade] revert-layer does not rollback unregistered custom properties
Product: WebKit Reporter: Nathan Knowler <nathan>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, koivisto, m_dubet, nathan, ntim, obrufau, webkit-bug-importer, zalan
Priority: P2 Keywords: BrowserCompat, HasReduction, InRadar
Version: Safari 17   
Hardware: All   
OS: All   
Attachments:
Description Flags
Test reduction for custom properties and revert-layer none

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'.