<?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>187052</bug_id>
          
          <creation_ts>2018-06-26 10:31:10 -0700</creation_ts>
          <short_desc>initial keyword doesn&apos;t match initial -webkit-mask-box-image-slice and stroke-color values</short_desc>
          <delta_ts>2020-07-21 14:42:39 -0700</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>DUPLICATE</resolution>
          <dup_id>213171</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sam Sneddon [:gsnedders]">gsnedders</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>sam</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1436565</commentid>
    <comment_count>0</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2018-06-26 10:31:10 -0700</bug_when>
    <thetext>Compare computed styles of &lt;span style=&quot;all: initial; direction: initial; unicode-bidi: initial; display: inline;&quot;&gt; and &lt;span&gt;:

-webkit-mask-box-image-slice: 0 (all: initial) v. 0 fill
stroke-color: rgb(0, 0, 0) (all: initial) v. rgba(0, 0, 0, 0)

This is unexpected, the semantics of all: initial should make the computed styles of both identical.

wpt/infrastructure/assumptions/html-elements.html tests this (see &quot;Compare CSS span definitions (only valid if pre-reqs pass)&quot; test).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1436579</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2018-06-26 10:54:14 -0700</bug_when>
    <thetext>[[&quot;-webkit-mask-box-image-slice&quot;, &quot;0 fill&quot;],
 [&quot;stroke-color&quot;, &quot;rgba(0, 0, 0, 0)&quot;]].forEach(([property, initial]) =&gt; {  
  [&quot;&quot;, &quot;initial&quot;, &quot;inherit&quot;].forEach((value) =&gt; {
    test(() =&gt; {
      const el = document.createElement(&quot;span&quot;);
      document.body.appendChild(el);
      el.style[property] = value;
      const cs = window.getComputedStyle(el);
      assert_equals(cs[property], initial);
    }, property + &quot;: &quot; + value);
  });
});

shows this is actually just the initial keyword generally?

Neither property has any defined value in html.css, so I don&apos;t know why there&apos;s any difference here.

Note that mask-border-slice, which per Compat -webkit-mask-box-image-slice is an alias of, should per spec have an initial value of 0 (as it gets with the initial keyword!) rather than the current &quot;0 fill&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1466800</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-10-05 15:42:26 -0700</bug_when>
    <thetext>&lt;rdar://problem/45057755&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1673628</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Weinig">sam</who>
    <bug_when>2020-07-21 14:42:39 -0700</bug_when>
    <thetext>This was fixed in r263156. Sorry for not seeing this bug when I was fixing it (and therefore the forward dupe here).

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

    </bug>

</bugzilla>