<?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>294363</bug_id>
          
          <creation_ts>2025-06-11 18:03:13 -0700</creation_ts>
          <short_desc>canonical serialization returns 0.5 instead of calc(0.5)</short_desc>
          <delta_ts>2025-12-01 16:48:38 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>296725</dup_id>
          
          <bug_file_loc>http://wpt.live/css/css-color/parsing/opacity-valid.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Karl Dubost">karlcow</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>koivisto</cc>
    
    <cc>ntim</cc>
    
    <cc>sam</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2123148</commentid>
    <comment_count>0</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2025-06-11 18:03:13 -0700</bug_when>
    <thetext>There are 8 tests failing the canonical serializarisation for opacity
http://wpt.fyi/css/css-color/parsing/opacity-valid.html
http://wpt.live/css/css-color/parsing/opacity-valid.html

Copy Paste this in the URL bar of different browsers:
data:text/html,&lt;div class=&quot;test&quot; style=&quot;opacity:clamp(50%,0%,70%)&quot;&gt;&lt;/div&gt;&lt;div class=&quot;log&quot;&gt;&lt;/div&gt;&lt;script&gt;document.querySelector(&quot;.log&quot;).textContent=document.querySelector(&quot;.test&quot;).style.getPropertyValue(&quot;opacity&quot;);&lt;/script&gt;

which is 

&lt;div class=&quot;test&quot; style=&quot;opacity: clamp(50%,0%,70%)&quot;&gt;&lt;/div&gt;
document.querySelector(&quot;.test&quot;).style.getPropertyValue(&quot;opacity&quot;);

It returns:
0.5                                   Safari Technology Preview  18.4 (220)         20622.1.14.5
cal(0.5)                           Firefox Nightly            141.0a1       14125.6.5
clamp(50%, 0%, 70%) Google Chrome Canary       139.0.7233.0  7233.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2124637</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-06-18 18:04:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/153784390&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2132424</commentid>
    <comment_count>2</comment_count>
    <who name="">ccarley2</who>
    <bug_when>2025-07-24 17:12:24 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/48505</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2162365</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2025-12-01 16:48:38 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 296725 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>