[Webkit-unassigned] [Bug 185940] New: CSS variables don't work as expected with borders and box shadow.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 24 01:43:56 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=185940

            Bug ID: 185940
           Summary: CSS variables don't work as expected with borders and
                    box shadow.
           Product: WebKit
           Version: Safari 11
          Hardware: All
                OS: All
            Status: NEW
          Severity: Critical
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: netanel.basal at datorama.com

The following CSS doesn't work in Safari.

:root {
  --primary-100: 38, 38, 38;
}

border: 1px solid rgba(var(--primary-100), 1);
box-shadow: 10px 10px 8px 10px rgba(var(--primary-100), 1);

Whereas in any other browser it's working as expected.  

It's worth mention that the following works in Safari: 

border-color: rgba(var(--primary-100), 1);
border: rgba(var(--primary-100), 1) 1px solid;

-- 
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/20180524/781332f7/attachment-0001.html>


More information about the webkit-unassigned mailing list