<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>229816</bug_id>
          
          <creation_ts>2021-09-02 10:55:48 -0700</creation_ts>
          <short_desc>Serialization of CSS custom property value is incorrect for a custom string</short_desc>
          <delta_ts>2023-12-15 18:29:18 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>Safari 14</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>macOS 10.15</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>kj.kim</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>amorosok</cc>
    
    <cc>dino</cc>
    
    <cc>kevin_neal</cc>
    
    <cc>kj.kim</cc>
    
    <cc>koivisto</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1789779</commentid>
    <comment_count>0</comment_count>
    <who name="">kj.kim</who>
    <bug_when>2021-09-02 10:55:48 -0700</bug_when>
    <thetext>Steps to reproduce the problem:
1. set CSS custom property with a custom string that is surrounded by single quotes, e.g., &quot;--logo-path: &apos;/20210629/asset/logo.svg&apos;;&quot;
2. fetch the value via JS, e.g., getComputedStyle(document.body).getPropertyValue(&quot;--logo-path&quot;);

What is the expected behavior?
returned value is &apos;/20210629/asset/logo.svg&apos;.

What went wrong?
returned value is &quot;/20210629/asset/logo.svg&quot;.

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

Spec clarification: https://github.com/w3c/csswg-drafts/issues/6572#issuecomment-911910455</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1791954</commentid>
    <comment_count>1</comment_count>
    <who name="Kevin Neal">kevin_neal</who>
    <bug_when>2021-09-09 10:07:33 -0700</bug_when>
    <thetext>Thank you for your filing. The appropriate engineers have been notified.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1791955</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-09-09 10:07:49 -0700</bug_when>
    <thetext>&lt;rdar://problem/82930930&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2000126</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-12-15 18:29:18 -0800</bug_when>
    <thetext>It is reproducible on Safari Technology Preview 184 as well and show &apos;double quotes&apos; for single quote.

*** Safari Technology Preview 184 ***

naked:
/20210629/asset/logo.svg
double quotes:
&quot;/20210629/s/assets/images/logo-alpine-group.svg&quot;
single quotes:
&quot;/20210629/s/assets/images/logo-alpine-group.svg&quot;

*** Other Browsers (Chrome Canary 122 &amp; Firefox Nightly 122) ***

naked:
/20210629/asset/logo.svg
double quotes:
&quot;/20210629/s/assets/images/logo-alpine-group.svg&quot;
single quotes:
&apos;/20210629/s/assets/images/logo-alpine-group.svg&apos;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>