<?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>151612</bug_id>
          
          <creation_ts>2015-11-25 16:36:09 -0800</creation_ts>
          <short_desc>[CSS3 Backgrounds and Borders] border image area can exist and be drawn, can be painted even if &apos;border-style&apos; of element is &apos;none&apos;</short_desc>
          <delta_ts>2021-08-25 19:54:24 -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 9</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>99922</dup_id>
          
          <bug_file_loc>http://wpt.live/css/css-backgrounds/border-image-width-005.xht</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, W3CTest</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>27569</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Gérard Talbot (no longer involved)">browserbugs2</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>cavalcantii</cc>
    
    <cc>savagobr</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1144465</commentid>
    <comment_count>0</comment_count>
    <who name="Gérard Talbot (no longer involved)">browserbugs2</who>
    <bug_when>2015-11-25 16:36:09 -0800</bug_when>
    <thetext>This bug report spun from bug 99922 comment 16

Unprefixed tests
----------------

http://test.csswg.org/suites/css-backgrounds-3_dev/nightly-unstable/html4/border-image-width-005.htm

http://test.csswg.org/suites/css-backgrounds-3_dev/nightly-unstable/html4/border-image-width-006.htm

http://test.csswg.org/suites/css-backgrounds-3_dev/nightly-unstable/html4/border-image-width-007.htm


Expected result
---------------

http://test.csswg.org/suites/css-backgrounds-3_dev/nightly-unstable/html4/reference/ref-filled-green-100px-square.htm


Explanations
------------

&apos;border-style&apos; of an element can be &apos;none&apos; and/or &apos;border-width&apos; can be &apos;0&apos; and there still can be a non-zero border image area which can be painted, drawn by the border-image-source as long as border-image-width is non-zero (and, of course, border-image-source exists and border-image-slice is non-zero). This is what the 3 tests are specifically checking, verifying, demonstrating.

By definition, border image area is the border box of an element. border image area is not the border belt of an element. So, there is a non-zero border image area if there is a non-zero content area and/or a non-zero padding belt (or area). Furthermore, even the margin belt (or area) could be painted by the border image if border-image-outset is non-zero.

6.3. Drawing Areas: the ‘border-image-width’ property
http://www.w3.org/TR/css3-background/#the-border-image-width

&quot;
The border image is drawn inside an area called the border image area (...) whose boundaries by default correspond to the border box (...). 
&quot;

Notes
-----

- I do not have Safari 9.0.2. 
- Chrome 48.0.2564.10 fails the 3 tests
- Firefox 42, IE11 and Edge 12 pass the 3 tests
- I&apos;ve searched for duplicates and did not find any; the closest I could found was bug 67657</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1144469</commentid>
    <comment_count>1</comment_count>
    <who name="Adenilson Cavalcanti Silva">savagobr</who>
    <bug_when>2015-11-25 19:50:10 -0800</bug_when>
    <thetext>I can confirm that all 3 tests fail in Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1144470</commentid>
    <comment_count>2</comment_count>
    <who name="Gérard Talbot (no longer involved)">browserbugs2</who>
    <bug_when>2015-11-25 20:59:02 -0800</bug_when>
    <thetext>I assume here that you mean version 9.0.2, which is the latest stable released version, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1144477</commentid>
    <comment_count>3</comment_count>
    <who name="Adenilson Cavalcanti Silva">savagobr</who>
    <bug_when>2015-11-25 23:37:57 -0800</bug_when>
    <thetext>I tested Safari 8.0.8, 9.0.1 (as also compiled from trunk).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1145421</commentid>
    <comment_count>4</comment_count>
    <who name="Gérard Talbot (no longer involved)">browserbugs2</who>
    <bug_when>2015-12-01 15:19:35 -0800</bug_when>
    <thetext>&gt; &apos;border-style&apos; of an element can be &apos;none&apos; and/or &apos;border-width&apos; can be &apos;0&apos;
&gt; and there still can be a non-zero border image area which can be painted,
&gt; drawn by the border-image-source as long as border-image-width is non-zero

To formulate this more precisely:

&apos;border-style&apos; of an element can be &apos;none&apos; and/or *_computed_* &apos;border-width&apos; value can be &apos;0&apos; and there still can be a non-zero border image area which can be painted, drawn by the border-image-source as long as border-image-width is a *_non-zero length (eg. 1em, 3px, etc)  or non-zero percentage_* ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1351325</commentid>
    <comment_count>5</comment_count>
    <who name="Gérard Talbot (no longer involved)">browserbugs2</who>
    <bug_when>2017-09-21 12:32:12 -0700</bug_when>
    <thetext>Correspondent Chrome (Blink) bug:

https://bugs.chromium.org/p/chromium/issues/detail?id=767352</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1682184</commentid>
    <comment_count>6</comment_count>
    <who name="Gérard Talbot (no longer involved)">browserbugs2</who>
    <bug_when>2020-08-22 15:41:01 -0700</bug_when>
    <thetext>Please use these for now:

https://wpt.fyi/results/css/css-backgrounds/border-image-width-005.xht
http://wpt.live/css/css-backgrounds/border-image-width-005.xht


https://wpt.fyi/results/css/css-backgrounds/border-image-width-006.xht
http://wpt.live/css/css-backgrounds/border-image-width-006.xht


https://wpt.fyi/results/css/css-backgrounds/border-image-width-007.xht
http://wpt.live/css/css-backgrounds/border-image-width-007.xht</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1787433</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-08-25 19:54:24 -0700</bug_when>
    <thetext>Fixing via bug 99922.

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

    </bug>

</bugzilla>