[Webkit-unassigned] [Bug 241475] New: Allow keywords in CSS custom property fallback

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 9 10:43:49 PDT 2022


            Bug ID: 241475
           Summary: Allow keywords in CSS custom property fallback
           Product: WebKit
           Version: Safari 15
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: xiaozj at gmail.com

Allow the use of keywords in custom property fallback.

One useful use case is to allow the use of "revert" to use user-agent stylesheet value as fallback.

Ex: * {display:var(--display,revert); --display:initial}

The example may seem redundant, but becomes useful with more complex logic such as responsive variants, modular scale for font sizes etc.

Firefox already supports this, Chrome is in the process of fixing it in https://bugs.chromium.org/p/chromium/issues/detail?id=1105782

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220609/1bb8fdcc/attachment.htm>

More information about the webkit-unassigned mailing list