<?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>241433</bug_id>
          
          <creation_ts>2022-06-08 13:30:19 -0700</creation_ts>
          <short_desc>Make CSS custom properties that are invalid at computed value time guaranteed-invalid</short_desc>
          <delta_ts>2023-02-15 09:05:05 -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 15</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Shaw Jia">xiaozj</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>augus.dupin</cc>
    
    <cc>bramus</cc>
    
    <cc>james0x57</cc>
    
    <cc>justin_michaud</cc>
    
    <cc>koivisto</cc>
    
    <cc>ntim</cc>
    
    <cc>philip</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1874787</commentid>
    <comment_count>0</comment_count>
    <who name="Shaw Jia">xiaozj</who>
    <bug_when>2022-06-08 13:30:19 -0700</bug_when>
    <thetext>Same as this Firefox bug: https://phabricator.services.mozilla.com/D116460

Also codepen demo: https://codepen.io/Miragecraft/pen/XWaLxNb

In short, when assigning an invalid CSS custom property to another custom property, it makes the final value unset (which means &quot;inherit&quot; for custom properties) instead of initial.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1874968</commentid>
    <comment_count>1</comment_count>
    <who name="Bruno Stasse">augus.dupin</who>
    <bug_when>2022-06-09 05:35:08 -0700</bug_when>
    <thetext>WebKit&apos;s behaviour now differs from both Gecko&apos;s and Blink&apos;s, causing an interoperability issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1876066</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-06-15 13:31:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/95234259&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1911496</commentid>
    <comment_count>3</comment_count>
    <who name="Philip Jägenstedt">philip</who>
    <bug_when>2022-11-10 03:08:51 -0800</bug_when>
    <thetext>Here&apos;s the relevant spec change:
https://github.com/w3c/csswg-drafts/issues/5370
https://github.com/w3c/csswg-drafts/pull/6006

And Safari-only failures in WPT:
https://wpt.fyi/results/css/css-variables/variables-substitute-guaranteed-invalid.html?run_id=6317090990981120&amp;run_id=5097315145089024&amp;run_id=5104235344035840&amp;run_id=5084375415259136

The reason I noticed is because this issue was specifically called out in a freeform text comment from State of CSS 2022.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1933834</commentid>
    <comment_count>4</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2023-02-15 09:02:11 -0800</bug_when>
    <thetext>Is now working.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1933836</commentid>
    <comment_count>5</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2023-02-15 09:05:05 -0800</bug_when>
    <thetext>That is css/css-variables/variables-substitute-guaranteed-invalid.html WPT is passing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>