<?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>244657</bug_id>
          
          <creation_ts>2022-08-31 21:57:35 -0700</creation_ts>
          <short_desc>border-image-* returns the initial keyword instead of the initial value when setting border-image shorthand</short_desc>
          <delta_ts>2022-11-29 08:12:43 -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 Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=242775</see_also>
          <bug_file_loc>http://wpt.live/css/css-backgrounds/parsing/border-image-shorthand.sub.html</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="Karl Dubost">karlcow</reporter>
          <assigned_to name="Darin Adler">darin</assigned_to>
          <cc>darin</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1895412</commentid>
    <comment_count>0</comment_count>
    <who name="Karl Dubost">karlcow</who>
    <bug_when>2022-08-31 21:57:35 -0700</bug_when>
    <thetext>Enter:

data:text/html,&lt;div%20style=&quot;border-image:%20initial&quot;&gt;

Then 

document.getElementsByTagName(&apos;div&apos;)[0].style.borderImageOutset
returns initial instead of 0

and so on the other properties.

document.getElementsByTagName(&apos;div&apos;)[0].style.borderImageRepeat
returns initial instead of stretch

etc.

see the tests in http://wpt.live/css/css-backgrounds/parsing/border-image-shorthand.sub.html

and 

https://searchfox.org/wubkat/rev/482480f60b1f8c26dfe99b670a5fe677abb0fcd8/Source/WebCore/css/parser/CSSPropertyParser.cpp#5645-5677

https://searchfox.org/wubkat/search?q=symbol:_ZN7WebCore12CSSValuePool26createImplicitInitialValueEv&amp;redirect=false</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1895413</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-08-31 21:57:47 -0700</bug_when>
    <thetext>&lt;rdar://problem/99420050&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912188</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2022-11-13 22:44:06 -0800</bug_when>
    <thetext>All uses of createImplicitInitialValue have this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1912622</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2022-11-15 08:44:39 -0800</bug_when>
    <thetext>I started working on this and I am sort of falling down a rabbit hole, since there is so much here that can be improved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913564</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2022-11-18 14:33:11 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/6652</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913565</commentid>
    <comment_count>5</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2022-11-18 14:33:50 -0800</bug_when>
    <thetext>Scaled back my ambition in this particular bug to just the two border-image shorthands, rather than all the other uses of createImplicitInitialValue, which likely each create a similar problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1915299</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-11-29 08:12:38 -0800</bug_when>
    <thetext>Committed 257119@main (c0c6ad146d33): &lt;https://commits.webkit.org/257119@main&gt;

Reviewed commits have been landed. Closing PR #6652 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>