[Webkit-unassigned] [Bug 229816] New: Serialization of CSS custom property value is incorrect for a custom string

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 2 10:55:48 PDT 2021


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

            Bug ID: 229816
           Summary: Serialization of CSS custom property value is
                    incorrect for a custom string
           Product: WebKit
           Version: Safari 14
          Hardware: Unspecified
                OS: macOS 10.15
            Status: NEW
          Severity: Minor
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kj.kim at salesforce.com

Steps to reproduce the problem:
1. set CSS custom property with a custom string that is surrounded by single quotes, e.g., "--logo-path: '/20210629/asset/logo.svg';"
2. fetch the value via JS, e.g., getComputedStyle(document.body).getPropertyValue("--logo-path");

What is the expected behavior?
returned value is '/20210629/asset/logo.svg'.

What went wrong?
returned value is "/20210629/asset/logo.svg".

Repro: https://codepen.io/kj-kim-sfdc/pen/zYzBNyg

Spec clarification: https://github.com/w3c/csswg-drafts/issues/6572#issuecomment-911910455

-- 
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/20210902/165441fb/attachment.htm>


More information about the webkit-unassigned mailing list