Changeset 192955 in webkit


Ignore:
Timestamp:
Dec 2, 2015 12:25:55 PM (8 years ago)
Author:
cavalcantii@gmail.com
Message:

[css border] border-image doesn't honor border-style
https://bugs.webkit.org/show_bug.cgi?id=99922

Reviewed by Simon Fraser.

Source/WebCore:

Ensure that WebKit will be compliant to css-backgrounds spec where a
border with an image will only be rendered if there is a style defined.

Quote: "None: No border. Color and width are ignored (i.e., the border has width 0)".
Reference: http://www.w3.org/TR/css3-background/#border-style

From W3C discussion: "The fact that these properties set the style of the border is
normative". Reference: https://lists.w3.org/Archives/Public/www-style/2015Nov/0260.html

Test: fast/borders/border-image-should-not-display.html

  • rendering/style/BorderData.h:

(WebCore::BorderData::hasBorder):
(WebCore::BorderData::borderLeftWidth):
(WebCore::BorderData::borderRightWidth):
(WebCore::BorderData::borderTopWidth):
(WebCore::BorderData::borderBottomWidth):

  • rendering/style/BorderValue.h:

(WebCore::BorderValue::nonZero):
(WebCore::BorderValue::isVisible):

LayoutTests:

Ensure that WebKit will be compliant to css-backgrounds spec where
a border with an image will only be rendered if there is a style defined.

Previous border image tests had to be edited (i.e. define border-style)
to ensure that a decorated border would be rendered.

  • fast/borders/border-image-01.html:
  • fast/borders/border-image-border-radius.html:
  • fast/borders/border-image-fill-no-intrinsic-size.html:
  • fast/borders/border-image-longhand.html:
  • fast/borders/border-image-massive-scale.html:
  • fast/borders/border-image-omit-right-slice.html:
  • fast/borders/border-image-outset-in-shorthand.html:
  • fast/borders/border-image-outset-split-inline-expected.txt:
  • fast/borders/border-image-outset-split-inline-vertical-lr-expected.txt:
  • fast/borders/border-image-outset-split-inline-vertical-lr.html:
  • fast/borders/border-image-outset-split-inline.html:
  • fast/borders/border-image-outset.html:
  • fast/borders/border-image-repeat.html:
  • fast/borders/border-image-rotate-transform.html:
  • fast/borders/border-image-scale-transform.html:
  • fast/borders/border-image-scaled.html:
  • fast/borders/border-image-scrambled.html:
  • fast/borders/border-image-should-not-display-expected.html: Added.
  • fast/borders/border-image-should-not-display.html: Added.
  • fast/borders/border-image-side-reduction.html:
  • fast/borders/border-image-slice-constrained.html:
  • fast/borders/border-image-slice-missing-right.html:
  • fast/borders/border-image-slices.html:
  • fast/borders/border-image-source.html:
  • fast/borders/border-image-trumps-radius-expected.txt:
  • fast/borders/border-image-trumps-radius.html:
  • fast/borders/hidpi-border-image-gradient-on-subpixels.html:
  • fast/borders/resources/red.png: Added.
  • fast/borders/scaled-border-image.html:
  • fast/gradients/border-image-gradient-expected.txt:
  • fast/gradients/border-image-gradient.html:
  • fast/hidpi/image-set-border-image-comparison.html:
  • fast/hidpi/image-set-border-image-dynamic.html:
  • fast/hidpi/image-set-border-image-simple.html:
  • fast/writing-mode/border-image-horizontal-bt.html:
  • fast/writing-mode/border-image-vertical-lr.html:
  • fast/writing-mode/border-image-vertical-rl.html:
  • platform/mac/fast/borders/border-image-01-expected.txt:
  • platform/mac/fast/borders/border-image-border-radius-expected.txt:
  • platform/mac/fast/borders/border-image-longhand-expected.txt:
  • platform/mac/fast/borders/border-image-massive-scale-expected.txt:
  • platform/mac/fast/borders/border-image-omit-right-slice-expected.txt:
  • platform/mac/fast/borders/border-image-outset-expected.txt:
  • platform/mac/fast/borders/border-image-outset-in-shorthand-expected.txt:
  • platform/mac/fast/borders/border-image-repeat-expected.txt:
  • platform/mac/fast/borders/border-image-rotate-transform-expected.txt:
  • platform/mac/fast/borders/border-image-scale-transform-expected.txt:
  • platform/mac/fast/borders/border-image-scaled-expected.txt:
  • platform/mac/fast/borders/border-image-scrambled-expected.txt:
  • platform/mac/fast/borders/border-image-side-reduction-expected.txt:
  • platform/mac/fast/borders/border-image-slice-constrained-expected.txt:
  • platform/mac/fast/borders/border-image-slices-expected.txt:
  • platform/mac/fast/borders/border-image-source-expected.txt:
  • platform/mac/fast/borders/scaled-border-image-expected.txt:
  • platform/mac/fast/hidpi/image-set-border-image-comparison-expected.txt:
  • platform/mac/fast/hidpi/image-set-border-image-dynamic-expected.txt:
  • platform/mac/fast/hidpi/image-set-border-image-simple-expected.txt:
  • platform/mac/fast/writing-mode/border-image-horizontal-bt-expected.txt:
  • platform/mac/fast/writing-mode/border-image-vertical-lr-expected.txt:
  • platform/mac/fast/writing-mode/border-image-vertical-rl-expected.txt:
Location:
trunk
Files:
3 added
68 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r192954 r192955  
     12015-12-02  Adenilson Cavalcanti  <cavalcantii@gmail.com>
     2
     3        [css border] border-image doesn't honor border-style
     4        https://bugs.webkit.org/show_bug.cgi?id=99922
     5
     6        Reviewed by Simon Fraser.
     7
     8        Ensure that WebKit will be compliant to css-backgrounds spec where
     9        a border with an image will only be rendered if there is a style defined.
     10
     11        Previous border image tests had to be edited (i.e. define border-style)
     12        to ensure that a decorated border would be rendered.
     13
     14        * fast/borders/border-image-01.html:
     15        * fast/borders/border-image-border-radius.html:
     16        * fast/borders/border-image-fill-no-intrinsic-size.html:
     17        * fast/borders/border-image-longhand.html:
     18        * fast/borders/border-image-massive-scale.html:
     19        * fast/borders/border-image-omit-right-slice.html:
     20        * fast/borders/border-image-outset-in-shorthand.html:
     21        * fast/borders/border-image-outset-split-inline-expected.txt:
     22        * fast/borders/border-image-outset-split-inline-vertical-lr-expected.txt:
     23        * fast/borders/border-image-outset-split-inline-vertical-lr.html:
     24        * fast/borders/border-image-outset-split-inline.html:
     25        * fast/borders/border-image-outset.html:
     26        * fast/borders/border-image-repeat.html:
     27        * fast/borders/border-image-rotate-transform.html:
     28        * fast/borders/border-image-scale-transform.html:
     29        * fast/borders/border-image-scaled.html:
     30        * fast/borders/border-image-scrambled.html:
     31        * fast/borders/border-image-should-not-display-expected.html: Added.
     32        * fast/borders/border-image-should-not-display.html: Added.
     33        * fast/borders/border-image-side-reduction.html:
     34        * fast/borders/border-image-slice-constrained.html:
     35        * fast/borders/border-image-slice-missing-right.html:
     36        * fast/borders/border-image-slices.html:
     37        * fast/borders/border-image-source.html:
     38        * fast/borders/border-image-trumps-radius-expected.txt:
     39        * fast/borders/border-image-trumps-radius.html:
     40        * fast/borders/hidpi-border-image-gradient-on-subpixels.html:
     41        * fast/borders/resources/red.png: Added.
     42        * fast/borders/scaled-border-image.html:
     43        * fast/gradients/border-image-gradient-expected.txt:
     44        * fast/gradients/border-image-gradient.html:
     45        * fast/hidpi/image-set-border-image-comparison.html:
     46        * fast/hidpi/image-set-border-image-dynamic.html:
     47        * fast/hidpi/image-set-border-image-simple.html:
     48        * fast/writing-mode/border-image-horizontal-bt.html:
     49        * fast/writing-mode/border-image-vertical-lr.html:
     50        * fast/writing-mode/border-image-vertical-rl.html:
     51        * platform/mac/fast/borders/border-image-01-expected.txt:
     52        * platform/mac/fast/borders/border-image-border-radius-expected.txt:
     53        * platform/mac/fast/borders/border-image-longhand-expected.txt:
     54        * platform/mac/fast/borders/border-image-massive-scale-expected.txt:
     55        * platform/mac/fast/borders/border-image-omit-right-slice-expected.txt:
     56        * platform/mac/fast/borders/border-image-outset-expected.txt:
     57        * platform/mac/fast/borders/border-image-outset-in-shorthand-expected.txt:
     58        * platform/mac/fast/borders/border-image-repeat-expected.txt:
     59        * platform/mac/fast/borders/border-image-rotate-transform-expected.txt:
     60        * platform/mac/fast/borders/border-image-scale-transform-expected.txt:
     61        * platform/mac/fast/borders/border-image-scaled-expected.txt:
     62        * platform/mac/fast/borders/border-image-scrambled-expected.txt:
     63        * platform/mac/fast/borders/border-image-side-reduction-expected.txt:
     64        * platform/mac/fast/borders/border-image-slice-constrained-expected.txt:
     65        * platform/mac/fast/borders/border-image-slices-expected.txt:
     66        * platform/mac/fast/borders/border-image-source-expected.txt:
     67        * platform/mac/fast/borders/scaled-border-image-expected.txt:
     68        * platform/mac/fast/hidpi/image-set-border-image-comparison-expected.txt:
     69        * platform/mac/fast/hidpi/image-set-border-image-dynamic-expected.txt:
     70        * platform/mac/fast/hidpi/image-set-border-image-simple-expected.txt:
     71        * platform/mac/fast/writing-mode/border-image-horizontal-bt-expected.txt:
     72        * platform/mac/fast/writing-mode/border-image-vertical-lr-expected.txt:
     73        * platform/mac/fast/writing-mode/border-image-vertical-rl-expected.txt:
     74
    1752015-12-02  Eric Carlson  <eric.carlson@apple.com>
    276
  • trunk/LayoutTests/animations/cross-fade-border-image-source.html

    r154906 r192955  
    99        width: 100px;
    1010        background-color: green;
     11        border-style: solid;
    1112        -webkit-animation: anim 1s linear infinite;
    1213        border-image: url() 5 5 5 5 /20px stretch stretch;
     
    1920        width: 100px;
    2021        background-color: green;
     22        border-style: solid;
    2123        -webkit-animation: animShorthand 1s linear infinite;
    2224    }
     
    2830        width: 100px;
    2931        background-color: green;
     32        border-style: solid;
    3033        border-image: -webkit-cross-fade(url(resources/stripes-100.png), url(resources/green-100.png), 50%) 5 5 5 5 /20px stretch stretch;
    3134    }
  • trunk/LayoutTests/fast/borders/border-image-01.html

    r23661 r192955  
    88            margin: 10px;
    99            display: inline-block;
     10            border-style: solid;
    1011        }
    1112
  • trunk/LayoutTests/fast/borders/border-image-border-radius.html

    r41976 r192955  
    99            display: inline-block;
    1010            -webkit-border-radius: 10px;
     11            border-style: solid;
    1112        }
    1213
  • trunk/LayoutTests/fast/borders/border-image-fill-no-intrinsic-size.html

    r190883 r192955  
    5959  <div class="box border-20"></div>
    6060  <div class="box no-border border-image-no-intrinsic-slice"></div>
    61   <div class="box border-20 border-image-no-intrinsic-slice"></div>
     61  <div class="box no-border border-image-no-intrinsic"></div>
    6262</body>
  • trunk/LayoutTests/fast/borders/border-image-longhand.html

    r94593 r192955  
    1111            border-image-slice: 21 30 30 21 fill;
    1212            border-image-width: 1;
     13            border-style: solid;
    1314        }
    1415
  • trunk/LayoutTests/fast/borders/border-image-massive-scale.html

    r95129 r192955  
    88            margin: 10px;
    99            display: inline-block;
     10            border-style: solid;
    1011        }
    1112
  • trunk/LayoutTests/fast/borders/border-image-omit-right-slice.html

    r63854 r192955  
    1818        border-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAIAAAACUFjqAAAAAXNSR0IArs4c6QAAAUFJREFUGNMBNgHJ/gPcUkznH/n8lGR5YkMIIMDXFhgoVNnfqeM5dbre55MDGkF/U6tMmi12K6QBpfkB4H3NyPZAiyjm6kp//uPtAA4pZhHPJ8xbkSop4chy5ecPsVSqkC03ozAmk77SOwOHR+fDXmoF5UUJU9YsnVfehg/iLC7p3etC3w3LEA8D0eGf/DZozPPzoSSX6gTVlQ/L4Ylt4SrFiOgqNDQPAPvl/JQuLv33xK66eAgGCn+OAIUu1Fugs2hsZNIB6gPhrZ80q7sXNUEuIE7EGNC5Dc2ExcIe9tseb4r7usAAralzLgdas9URX21wGUqSgDnf/jMydhxMIEx4w9TtAfCQPsbi30EEVABXFJYnOZgfbQK3CLkwg6PDGG27KwOYF7jD+sIHhdwoUyILAF5sv/6bI6S56fbULB5OToUjFpS7UHGrVgAAAABJRU5ErkJggg==) 1 2 3;
    1919        border-width: 100px;
     20        border-style: solid;
    2021    }
    2122
  • trunk/LayoutTests/fast/borders/border-image-outset-in-shorthand.html

    r94912 r192955  
    99            -webkit-border-image: url("resources/border-image.png") 21 30 30 21 / 1 / 21px 30px 30px 21px stretch;
    1010            margin:30px;
     11            border-style: solid;
    1112        }
    1213
  • trunk/LayoutTests/fast/borders/border-image-outset-split-inline-expected.txt

    r177774 r192955  
    55    RenderBody {BODY} at (8,8) size 784x584
    66      RenderBlock {DIV} at (0,0) size 784x350
    7         RenderInline {SPAN} at (0,0) size 37x230 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     7        RenderInline {SPAN} at (0,0) size 37x230 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    88          RenderText {#text} at (46,85) size 7x29
    99            text run at (46,85) width 7: " "
  • trunk/LayoutTests/fast/borders/border-image-outset-split-inline-vertical-lr-expected.txt

    r177774 r192955  
    55    RenderBody {BODY} at (8,8) size 784x584
    66      RenderBlock {DIV} at (0,0) size 350x584
    7         RenderInline {SPAN} at (0,0) size 230x37 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     7        RenderInline {SPAN} at (0,0) size 230x37 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    88          RenderText {#text} at (85,46) size 29x7
    99            text run at (85,46) width 7: " "
  • trunk/LayoutTests/fast/borders/border-image-outset-split-inline-vertical-lr.html

    r94912 r192955  
    55            border-width: 21px 30px 30px 21px;
    66            -webkit-border-image: url("resources/border-image.png") 21 30 30 21 / 1 / 21px 30px 30px 21px repeat;
     7            border-style: solid;
    78        }
    89    </style>
  • trunk/LayoutTests/fast/borders/border-image-outset-split-inline.html

    r94912 r192955  
    55            border-width: 21px 30px 30px 21px;
    66            -webkit-border-image: url("resources/border-image.png") 21 30 30 21 / 1 / 21px 30px 30px 21px repeat;
     7            border-style: solid;
    78        }
    89    </style>
  • trunk/LayoutTests/fast/borders/border-image-outset.html

    r94912 r192955  
    1212            border-image-outset: 1;
    1313            margin:30px;
     14            border-style: solid;
    1415        }
    1516
  • trunk/LayoutTests/fast/borders/border-image-repeat.html

    r94420 r192955  
    88            margin: 10px;
    99            display: inline-block;
     10            border-style: solid;
    1011        }
    1112
  • trunk/LayoutTests/fast/borders/border-image-rotate-transform.html

    r27150 r192955  
    88            margin: 10px;
    99            display: inline-block;
     10            border-style: solid;
    1011        }
    1112
  • trunk/LayoutTests/fast/borders/border-image-scale-transform.html

    r27064 r192955  
    88            margin: 10px;
    99            display: inline-block;
     10            border-style: solid;
    1011        }
    1112
  • trunk/LayoutTests/fast/borders/border-image-scaled.html

    r94593 r192955  
    77            margin: 10px;
    88            display: inline-block;
     9            border-style: solid;
    910        }
    1011
  • trunk/LayoutTests/fast/borders/border-image-scrambled.html

    r95099 r192955  
    88            margin: 10px;
    99            display: inline-block;
     10            border-style: solid;
    1011        }
    1112
  • trunk/LayoutTests/fast/borders/border-image-side-reduction.html

    r94593 r192955  
    1111            border-image-slice: 21 30 30 21 fill;
    1212            border-image-width: 30;
     13            border-style: solid;
    1314        }
    1415
  • trunk/LayoutTests/fast/borders/border-image-slice-constrained.html

    r180441 r192955  
    1010            border-image-repeat: repeat;
    1111            display: inline-block;
     12            border-style: solid;
    1213        }
    1314
  • trunk/LayoutTests/fast/borders/border-image-slice-missing-right.html

    r167090 r192955  
    99      width: 0px;
    1010      height: 26px;
     11      border-style: solid;
    1112    }
    1213  </style>
  • trunk/LayoutTests/fast/borders/border-image-slices.html

    r94299 r192955  
    1010            border-image-source: url("resources/border-image.png") !important;
    1111            border-image-slice: 21 30 30 21 fill !important;
     12            border-style: solid;
    1213        }
    1314
  • trunk/LayoutTests/fast/borders/border-image-source.html

    r94206 r192955  
    99            display: inline-block;
    1010            border-image-source: url("resources/border-image.png") !important
     11            border-style: solid;
    1112        }
    1213
  • trunk/LayoutTests/fast/borders/border-image-trumps-radius-expected.txt

    r85067 r192955  
    55    RenderBody {BODY} at (8,8) size 784x584
    66      RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#FF0000]
    7       RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#FF0000] [border: (10px none #0000FF7F)]
     7      RenderBlock {DIV} at (0,0) size 100x100 [bgcolor=#FF0000] [border: (10px solid #0000FF7F)]
  • trunk/LayoutTests/fast/borders/border-image-trumps-radius.html

    r85067 r192955  
    88    border-width: 10px;
    99    border-color: rgba(0, 0, 255, 0.5);
     10    border-style: solid;
    1011    -webkit-border-image: -webkit-linear-gradient(green, green) 10 10 10 10;
    1112"></div>
  • trunk/LayoutTests/fast/borders/hidpi-border-image-gradient-on-subpixels.html

    r166925 r192955  
    88    position: fixed;
    99    -webkit-border-image: -webkit-linear-gradient(black, black) 1 100%;
     10    border-style: solid;
    1011  }
    1112</style>
  • trunk/LayoutTests/fast/borders/scaled-border-image.html

    r105515 r192955  
    99        border-image-width: 1;
    1010        border-image-repeat: repeat;
     11        border-style: solid;
    1112    }
    1213</style>
  • trunk/LayoutTests/fast/css/image-set-value-not-removed-crash.html

    r154281 r192955  
    1616}
    1717.class1 {
     18    border-style: solid;
    1819    border-image: -webkit-image-set(url(#does-not-exist) 25x, url("does-not-exist.gif") 206x) 2 126 158 166 fill;
    1920}
  • trunk/LayoutTests/fast/gradients/border-image-gradient-expected.txt

    r105633 r192955  
    44  RenderBlock {HTML} at (0,0) size 800x600
    55    RenderBody {BODY} at (8,10) size 784x580
    6       RenderBlock {DIV} at (10,0) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     6      RenderBlock {DIV} at (10,0) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
  • trunk/LayoutTests/fast/gradients/border-image-gradient.html

    r31838 r192955  
    77            height: 75px;
    88            margin: 10px;
     9            border-style: solid;
    910            -webkit-border-image: -webkit-gradient(linear, left top, left bottom, from(#00abeb), to(#fff), color-stop(0.5, #fff), color-stop(0.5, #66cc00)) 21 30 30 21 repeat repeat;
    1011        }
  • trunk/LayoutTests/fast/hidpi/image-set-border-image-comparison.html

    r121012 r192955  
    1616<style>
    1717div {
    18         box-sizing: border-box;
     18    box-sizing: border-box;
    1919    width: 40px;
    2020    height: 13px;
     21    border-style: solid;
    2122}
    2223
  • trunk/LayoutTests/fast/hidpi/image-set-border-image-dynamic.html

    r121012 r192955  
    2121        width:100px;
    2222        height:100px;
     23        border-style: solid;
    2324        -webkit-border-image: -webkit-image-set(url('resources/blue-100-px-square.png') 1x, url('resources/green-200-px-square.png') 2x) 10 10 10 10 stretch stretch;
    2425    }
  • trunk/LayoutTests/fast/hidpi/image-set-border-image-simple.html

    r121012 r192955  
    3535        height:100px;
    3636        border-width: 10px;
     37        border-style: solid;
    3738        -webkit-border-image: -webkit-image-set(url('resources/blue-100-px-square.png') 1x, url('resources/green-200-px-square.png') 2x) 10 10 10 10 stretch stretch;
    3839    }
  • trunk/LayoutTests/fast/writing-mode/border-image-horizontal-bt.html

    r70813 r192955  
    66    font-size:86px;
    77    margin: 30px;
     8    border-style: solid;
    89    -webkit-border-image: url("../borders/resources/border-image.png") 21 30 30 21 repeat repeat;
    910}
  • trunk/LayoutTests/fast/writing-mode/border-image-vertical-lr.html

    r70813 r192955  
    66    font-size:86px;
    77    margin: 30px;
     8    border-style: solid;
    89    -webkit-border-image: url("../borders/resources/border-image.png") 21 30 30 21 repeat repeat;
    910}
  • trunk/LayoutTests/fast/writing-mode/border-image-vertical-rl.html

    r70813 r192955  
    66    font-size:86px;
    77    margin: 30px;
     8    border-style: solid;
    89    -webkit-border-image: url("../borders/resources/border-image.png") 21 30 30 21 repeat repeat;
    910}
  • trunk/LayoutTests/platform/mac/animations/cross-fade-border-image-source-expected.txt

    r177774 r192955  
    1717        RenderBR {BR} at (32,86) size 1x0
    1818layer at (100,100) size 106x106
    19   RenderBlock (positioned) {DIV} at (100,100) size 106x106 [bgcolor=#008000] [border: (3px none #000000)]
     19  RenderBlock (positioned) {DIV} at (100,100) size 106x106 [bgcolor=#008000] [border: (3px solid #000000)]
    2020layer at (100,250) size 106x106
    21   RenderBlock (positioned) {DIV} at (100,250) size 106x106 [bgcolor=#008000] [border: (3px none #000000)]
     21  RenderBlock (positioned) {DIV} at (100,250) size 106x106 [bgcolor=#008000] [border: (3px solid #000000)]
    2222layer at (100,400) size 106x106
    23   RenderBlock (positioned) {DIV} at (100,400) size 106x106 [bgcolor=#008000] [border: (3px none #000000)]
     23  RenderBlock (positioned) {DIV} at (100,400) size 106x106 [bgcolor=#008000] [border: (3px solid #000000)]
  • trunk/LayoutTests/platform/mac/fast/borders/border-image-01-expected.txt

    r63403 r192955  
    44  RenderBlock {HTML} at (0,0) size 800x600
    55    RenderBody {BODY} at (8,8) size 784x584
    6       RenderBlock {DIV} at (10,10) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     6      RenderBlock {DIV} at (10,10) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    77      RenderText {#text} at (146,132) size 4x18
    88        text run at (146,132) width 4: " "
    9       RenderBlock {DIV} at (160,10) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     9      RenderBlock {DIV} at (160,10) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1010      RenderText {#text} at (296,132) size 4x18
    1111        text run at (296,132) width 4: " "
    1212      RenderBR {BR} at (0,0) size 0x0
    13       RenderBlock {DIV} at (10,160) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     13      RenderBlock {DIV} at (10,160) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1414      RenderText {#text} at (146,282) size 4x18
    1515        text run at (146,282) width 4: " "
    16       RenderBlock {DIV} at (160,160) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     16      RenderBlock {DIV} at (160,160) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1717      RenderText {#text} at (0,0) size 0x0
  • trunk/LayoutTests/platform/mac/fast/borders/border-image-border-radius-expected.txt

    r177774 r192955  
    66      RenderText {#text} at (0,132) size 532x18
    77        text run at (0,132) width 532: "This test checks to make sure the border-image is not clipped by the border radius. "
    8       RenderBlock {DIV} at (541,10) size 127x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     8      RenderBlock {DIV} at (541,10) size 127x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    99      RenderText {#text} at (0,0) size 0x0
    10       RenderBlock {DIV} at (10,160) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     10      RenderBlock {DIV} at (10,160) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1111      RenderText {#text} at (146,282) size 4x18
    1212        text run at (146,282) width 4: " "
    1313      RenderBR {BR} at (0,0) size 0x0
    14       RenderBlock {DIV} at (10,310) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     14      RenderBlock {DIV} at (10,310) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1515      RenderText {#text} at (146,432) size 4x18
    1616        text run at (146,432) width 4: " "
    17       RenderBlock {DIV} at (160,310) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     17      RenderBlock {DIV} at (160,310) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1818      RenderText {#text} at (0,0) size 0x0
  • trunk/LayoutTests/platform/mac/fast/borders/border-image-longhand-expected.txt

    r94593 r192955  
    44  RenderBlock {HTML} at (0,0) size 800x600
    55    RenderBody {BODY} at (8,8) size 784x584
    6       RenderBlock {DIV} at (10,10) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     6      RenderBlock {DIV} at (10,10) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    77      RenderText {#text} at (146,132) size 4x18
    88        text run at (146,132) width 4: " "
    9       RenderBlock {DIV} at (160,10) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     9      RenderBlock {DIV} at (160,10) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1010      RenderText {#text} at (296,132) size 4x18
    1111        text run at (296,132) width 4: " "
    1212      RenderBR {BR} at (0,0) size 0x0
    13       RenderBlock {DIV} at (10,160) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     13      RenderBlock {DIV} at (10,160) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1414      RenderText {#text} at (146,282) size 4x18
    1515        text run at (146,282) width 4: " "
    16       RenderBlock {DIV} at (160,160) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     16      RenderBlock {DIV} at (160,160) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1717      RenderText {#text} at (0,0) size 0x0
  • trunk/LayoutTests/platform/mac/fast/borders/border-image-massive-scale-expected.txt

    r95129 r192955  
    44  RenderBlock {HTML} at (0,0) size 785x724
    55    RenderBody {BODY} at (8,8) size 769x708
    6       RenderBlock {DIV} at (10,10) size 330x330 [border: (105px none #000000) (150px none #000000) (105px none #000000)]
     6      RenderBlock {DIV} at (10,10) size 330x330 [border: (105px solid #000000) (150px solid #000000) (105px solid #000000)]
    77      RenderText {#text} at (350,336) size 4x18
    88        text run at (350,336) width 4: " "
    9       RenderBlock {DIV} at (364,10) size 330x330 [border: (105px none #000000) (150px none #000000) (105px none #000000)]
     9      RenderBlock {DIV} at (364,10) size 330x330 [border: (105px solid #000000) (150px solid #000000) (105px solid #000000)]
    1010      RenderText {#text} at (704,336) size 4x18
    1111        text run at (704,336) width 4: " "
    1212      RenderBR {BR} at (0,0) size 0x0
    13       RenderBlock {DIV} at (10,364) size 330x330 [border: (105px none #000000) (150px none #000000) (105px none #000000)]
     13      RenderBlock {DIV} at (10,364) size 330x330 [border: (105px solid #000000) (150px solid #000000) (105px solid #000000)]
    1414      RenderText {#text} at (350,690) size 4x18
    1515        text run at (350,690) width 4: " "
    16       RenderBlock {DIV} at (364,364) size 330x330 [border: (105px none #000000) (150px none #000000) (105px none #000000)]
     16      RenderBlock {DIV} at (364,364) size 330x330 [border: (105px solid #000000) (150px solid #000000) (105px solid #000000)]
    1717      RenderText {#text} at (0,0) size 0x0
  • trunk/LayoutTests/platform/mac/fast/borders/border-image-omit-right-slice-expected.txt

    r34324 r192955  
    44  RenderBlock {HTML} at (0,0) size 800x416
    55    RenderBody {BODY} at (8,8) size 784x400
    6       RenderBlock {DIV} at (0,0) size 400x400 [border: (100px none #000000)]
     6      RenderBlock {DIV} at (0,0) size 400x400 [border: (100px solid #000000)]
    77        RenderBlock {DIV} at (100,100) size 200x200 [bgcolor=#FFFFFF]
  • trunk/LayoutTests/platform/mac/fast/borders/border-image-outset-expected.txt

    r94912 r192955  
    44  RenderBlock {HTML} at (0,0) size 800x600
    55    RenderBody {BODY} at (8,8) size 784x584
    6       RenderBlock {DIV} at (30,30) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     6      RenderBlock {DIV} at (30,30) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    77      RenderText {#text} at (186,172) size 4x18
    88        text run at (186,172) width 4: " "
    9       RenderBlock {DIV} at (220,30) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     9      RenderBlock {DIV} at (220,30) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1010      RenderText {#text} at (376,172) size 4x18
    1111        text run at (376,172) width 4: " "
    1212      RenderBR {BR} at (0,0) size 0x0
    13       RenderBlock {DIV} at (30,220) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     13      RenderBlock {DIV} at (30,220) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1414      RenderText {#text} at (186,362) size 4x18
    1515        text run at (186,362) width 4: " "
    16       RenderBlock {DIV} at (220,220) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     16      RenderBlock {DIV} at (220,220) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1717      RenderText {#text} at (0,0) size 0x0
  • trunk/LayoutTests/platform/mac/fast/borders/border-image-outset-in-shorthand-expected.txt

    r94912 r192955  
    44  RenderBlock {HTML} at (0,0) size 800x600
    55    RenderBody {BODY} at (8,8) size 784x584
    6       RenderBlock {DIV} at (30,30) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     6      RenderBlock {DIV} at (30,30) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    77      RenderText {#text} at (186,172) size 4x18
    88        text run at (186,172) width 4: " "
    9       RenderBlock {DIV} at (220,30) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     9      RenderBlock {DIV} at (220,30) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1010      RenderText {#text} at (376,172) size 4x18
    1111        text run at (376,172) width 4: " "
    1212      RenderBR {BR} at (0,0) size 0x0
    13       RenderBlock {DIV} at (30,220) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     13      RenderBlock {DIV} at (30,220) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1414      RenderText {#text} at (186,362) size 4x18
    1515        text run at (186,362) width 4: " "
    16       RenderBlock {DIV} at (220,220) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     16      RenderBlock {DIV} at (220,220) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1717      RenderText {#text} at (0,0) size 0x0
  • trunk/LayoutTests/platform/mac/fast/borders/border-image-repeat-expected.txt

    r94420 r192955  
    44  RenderBlock {HTML} at (0,0) size 800x600
    55    RenderBody {BODY} at (8,8) size 784x584
    6       RenderBlock {DIV} at (10,10) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     6      RenderBlock {DIV} at (10,10) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    77      RenderText {#text} at (146,132) size 4x18
    88        text run at (146,132) width 4: " "
    9       RenderBlock {DIV} at (160,10) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     9      RenderBlock {DIV} at (160,10) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1010      RenderText {#text} at (296,132) size 4x18
    1111        text run at (296,132) width 4: " "
    1212      RenderBR {BR} at (0,0) size 0x0
    13       RenderBlock {DIV} at (10,160) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     13      RenderBlock {DIV} at (10,160) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1414      RenderText {#text} at (146,282) size 4x18
    1515        text run at (146,282) width 4: " "
    16       RenderBlock {DIV} at (160,160) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     16      RenderBlock {DIV} at (160,160) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1717      RenderText {#text} at (0,0) size 0x0
  • trunk/LayoutTests/platform/mac/fast/borders/border-image-rotate-transform-expected.txt

    r70170 r192955  
    55layer at (8,8) size 769x569
    66  RenderBody {BODY} at (8,8) size 769x569
    7     RenderBlock {DIV} at (10,10) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     7    RenderBlock {DIV} at (10,10) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    88    RenderText {#text} at (146,132) size 4x18
    99      text run at (146,132) width 4: " "
    10     RenderBlock {DIV} at (160,10) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     10    RenderBlock {DIV} at (160,10) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1111    RenderText {#text} at (296,132) size 4x18
    1212      text run at (296,132) width 4: " "
    1313    RenderBR {BR} at (0,0) size 0x0
    14     RenderBlock {DIV} at (10,160) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     14    RenderBlock {DIV} at (10,160) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1515    RenderText {#text} at (146,282) size 4x18
    1616      text run at (146,282) width 4: " "
    17     RenderBlock {DIV} at (160,160) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     17    RenderBlock {DIV} at (160,160) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1818    RenderText {#text} at (0,0) size 0x0
  • trunk/LayoutTests/platform/mac/fast/borders/border-image-scale-transform-expected.txt

    r70170 r192955  
    55layer at (8,8) size 769x569
    66  RenderBody {BODY} at (8,8) size 769x569
    7     RenderBlock {DIV} at (10,10) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     7    RenderBlock {DIV} at (10,10) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    88    RenderText {#text} at (146,132) size 4x18
    99      text run at (146,132) width 4: " "
    10     RenderBlock {DIV} at (160,10) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     10    RenderBlock {DIV} at (160,10) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1111    RenderText {#text} at (296,132) size 4x18
    1212      text run at (296,132) width 4: " "
    1313    RenderBR {BR} at (0,0) size 0x0
    14     RenderBlock {DIV} at (10,160) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     14    RenderBlock {DIV} at (10,160) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1515    RenderText {#text} at (146,282) size 4x18
    1616      text run at (146,282) width 4: " "
    17     RenderBlock {DIV} at (160,160) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     17    RenderBlock {DIV} at (160,160) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1818    RenderText {#text} at (0,0) size 0x0
  • trunk/LayoutTests/platform/mac/fast/borders/border-image-scaled-expected.txt

    r177774 r192955  
    99          text run at (0,18) width 715: "actually end up becoming the real border widths. The border-image property in the specification doesn't do this."
    1010      RenderBlock (anonymous) at (0,52) size 769x552
    11         RenderBlock {DIV} at (10,10) size 252x252 [border: (42px none #000000) (60px none #000000) (42px none #000000)]
     11        RenderBlock {DIV} at (10,10) size 252x252 [border: (42px solid #000000) (60px solid #000000) (42px solid #000000)]
    1212        RenderText {#text} at (272,258) size 4x18
    1313          text run at (272,258) width 4: " "
    14         RenderBlock {DIV} at (286,10) size 252x252 [border: (42px none #000000) (60px none #000000) (42px none #000000)]
     14        RenderBlock {DIV} at (286,10) size 252x252 [border: (42px solid #000000) (60px solid #000000) (42px solid #000000)]
    1515        RenderText {#text} at (548,258) size 4x18
    1616          text run at (548,258) width 4: " "
    1717        RenderBR {BR} at (0,0) size 0x0
    18         RenderBlock {DIV} at (10,286) size 252x252 [border: (42px none #000000) (60px none #000000) (42px none #000000)]
     18        RenderBlock {DIV} at (10,286) size 252x252 [border: (42px solid #000000) (60px solid #000000) (42px solid #000000)]
    1919        RenderText {#text} at (272,534) size 4x18
    2020          text run at (272,534) width 4: " "
    21         RenderBlock {DIV} at (286,286) size 252x252 [border: (42px none #000000) (60px none #000000) (42px none #000000)]
     21        RenderBlock {DIV} at (286,286) size 252x252 [border: (42px solid #000000) (60px solid #000000) (42px solid #000000)]
    2222        RenderText {#text} at (0,0) size 0x0
  • trunk/LayoutTests/platform/mac/fast/borders/border-image-scrambled-expected.txt

    r95099 r192955  
    44  RenderBlock {HTML} at (0,0) size 800x600
    55    RenderBody {BODY} at (8,8) size 784x584
    6       RenderBlock {DIV} at (10,10) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     6      RenderBlock {DIV} at (10,10) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    77      RenderText {#text} at (146,132) size 4x18
    88        text run at (146,132) width 4: " "
    9       RenderBlock {DIV} at (160,10) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     9      RenderBlock {DIV} at (160,10) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1010      RenderText {#text} at (296,132) size 4x18
    1111        text run at (296,132) width 4: " "
    1212      RenderBR {BR} at (0,0) size 0x0
    13       RenderBlock {DIV} at (10,160) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     13      RenderBlock {DIV} at (10,160) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1414      RenderText {#text} at (146,282) size 4x18
    1515        text run at (146,282) width 4: " "
    16       RenderBlock {DIV} at (160,160) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     16      RenderBlock {DIV} at (160,160) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1717      RenderText {#text} at (0,0) size 0x0
  • trunk/LayoutTests/platform/mac/fast/borders/border-image-side-reduction-expected.txt

    r94593 r192955  
    44  RenderBlock {HTML} at (0,0) size 800x600
    55    RenderBody {BODY} at (8,8) size 784x584
    6       RenderBlock {DIV} at (10,10) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     6      RenderBlock {DIV} at (10,10) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    77      RenderText {#text} at (146,132) size 4x18
    88        text run at (146,132) width 4: " "
    9       RenderBlock {DIV} at (160,10) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     9      RenderBlock {DIV} at (160,10) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1010      RenderText {#text} at (296,132) size 4x18
    1111        text run at (296,132) width 4: " "
    1212      RenderBR {BR} at (0,0) size 0x0
    13       RenderBlock {DIV} at (10,160) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     13      RenderBlock {DIV} at (10,160) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1414      RenderText {#text} at (146,282) size 4x18
    1515        text run at (146,282) width 4: " "
    16       RenderBlock {DIV} at (160,160) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     16      RenderBlock {DIV} at (160,160) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1717      RenderText {#text} at (0,0) size 0x0
  • trunk/LayoutTests/platform/mac/fast/borders/border-image-slice-constrained-expected.txt

    r180441 r192955  
    44  RenderBlock {HTML} at (0,0) size 800x600
    55    RenderBody {BODY} at (8,8) size 784x584
    6       RenderBlock {DIV} at (10,10) size 171x171 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     6      RenderBlock {DIV} at (10,10) size 171x171 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    77      RenderText {#text} at (191,177) size 4x18
    88        text run at (191,177) width 4: " "
    9       RenderBlock {DIV} at (205,10) size 171x171 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     9      RenderBlock {DIV} at (205,10) size 171x171 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1010      RenderText {#text} at (0,0) size 0x0
  • trunk/LayoutTests/platform/mac/fast/borders/border-image-slices-expected.txt

    r94299 r192955  
    44  RenderBlock {HTML} at (0,0) size 800x600
    55    RenderBody {BODY} at (8,8) size 784x584
    6       RenderBlock {DIV} at (10,10) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     6      RenderBlock {DIV} at (10,10) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    77      RenderText {#text} at (146,132) size 4x18
    88        text run at (146,132) width 4: " "
    9       RenderBlock {DIV} at (160,10) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     9      RenderBlock {DIV} at (160,10) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1010      RenderText {#text} at (296,132) size 4x18
    1111        text run at (296,132) width 4: " "
    1212      RenderBR {BR} at (0,0) size 0x0
    13       RenderBlock {DIV} at (10,160) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     13      RenderBlock {DIV} at (10,160) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1414      RenderText {#text} at (146,282) size 4x18
    1515        text run at (146,282) width 4: " "
    16       RenderBlock {DIV} at (160,160) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     16      RenderBlock {DIV} at (160,160) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    1717      RenderText {#text} at (0,0) size 0x0
  • trunk/LayoutTests/platform/mac/fast/borders/border-image-source-expected.txt

    r94206 r192955  
    44  RenderBlock {HTML} at (0,0) size 800x600
    55    RenderBody {BODY} at (8,8) size 784x584
    6       RenderBlock {DIV} at (10,10) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
    7       RenderText {#text} at (146,132) size 4x18
    8         text run at (146,132) width 4: " "
    9       RenderBlock {DIV} at (160,10) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
    10       RenderText {#text} at (296,132) size 4x18
    11         text run at (296,132) width 4: " "
     6      RenderBlock {DIV} at (10,10) size 75x75
     7      RenderText {#text} at (95,81) size 4x18
     8        text run at (95,81) width 4: " "
     9      RenderBlock {DIV} at (109,10) size 75x75
     10      RenderText {#text} at (194,81) size 4x18
     11        text run at (194,81) width 4: " "
    1212      RenderBR {BR} at (0,0) size 0x0
    13       RenderBlock {DIV} at (10,160) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
    14       RenderText {#text} at (146,282) size 4x18
    15         text run at (146,282) width 4: " "
    16       RenderBlock {DIV} at (160,160) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     13      RenderBlock {DIV} at (10,109) size 75x75
     14      RenderText {#text} at (95,180) size 4x18
     15        text run at (95,180) width 4: " "
     16      RenderBlock {DIV} at (109,109) size 75x75
    1717      RenderText {#text} at (0,0) size 0x0
  • trunk/LayoutTests/platform/mac/fast/borders/scaled-border-image-expected.txt

    r177774 r192955  
    44  RenderBlock {HTML} at (0,0) size 800x600
    55    RenderBody {BODY} at (8,10) size 784x570
    6       RenderBlock {DIV} at (10,0) size 126x126 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     6      RenderBlock {DIV} at (10,0) size 126x126 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    77      RenderBlock (anonymous) at (0,136) size 784x18
    88        RenderText {#text} at (0,0) size 408x18
    99          text run at (0,0) width 408: "This should look like the above, only scaled up by a factor of 2:"
    10       RenderBlock {DIV} at (20,174) size 252x252 [border: (42px none #000000) (60px none #000000) (42px none #000000)]
     10      RenderBlock {DIV} at (20,174) size 252x252 [border: (42px solid #000000) (60px solid #000000) (42px solid #000000)]
  • trunk/LayoutTests/platform/mac/fast/hidpi/image-set-border-image-comparison-expected.txt

    r177774 r192955  
    99        RenderBR {BR} at (285,14) size 1x0
    1010        RenderBR {BR} at (0,18) size 0x18
    11       RenderBlock {DIV} at (0,36) size 40x13 [border: (3px none #000000)]
     11      RenderBlock {DIV} at (0,36) size 40x13 [border: (3px solid #000000)]
    1212      RenderBlock (anonymous) at (0,49) size 784x18
    1313        RenderBR {BR} at (0,0) size 0x18
    14       RenderBlock {DIV} at (0,67) size 40x13 [border: (3px none #000000) (7px none #000000) (3px none #000000)]
     14      RenderBlock {DIV} at (0,67) size 40x13 [border: (3px solid #000000) (7px solid #000000) (3px solid #000000)]
    1515      RenderBlock (anonymous) at (0,80) size 784x18
    1616        RenderBR {BR} at (0,0) size 0x18
    17       RenderBlock {DIV} at (0,98) size 40x13 [border: (3px none #000000)]
     17      RenderBlock {DIV} at (0,98) size 40x13 [border: (3px solid #000000)]
    1818      RenderBlock (anonymous) at (0,111) size 784x18
    1919        RenderBR {BR} at (0,0) size 0x18
    20       RenderBlock {DIV} at (0,129) size 40x13 [border: (3px none #000000) (7px none #000000) (3px none #000000)]
     20      RenderBlock {DIV} at (0,129) size 40x13 [border: (3px solid #000000) (7px solid #000000) (3px solid #000000)]
    2121      RenderBlock (anonymous) at (0,142) size 784x18
    2222        RenderBR {BR} at (0,0) size 0x18
  • trunk/LayoutTests/platform/mac/fast/hidpi/image-set-border-image-dynamic-expected.txt

    r177774 r192955  
    99          text run at (0,18) width 779: "when the deviceScaleFactor is 2. When run in the test harness, this test is distinct from image-set-as-background, because"
    1010          text run at (0,36) width 515: "it ensures that the green image loads dynamically when the scale factor changes."
    11       RenderBlock {DIV} at (0,54) size 106x106 [border: (3px none #000000)]
     11      RenderBlock {DIV} at (0,54) size 106x106 [border: (3px solid #000000)]
    1212        RenderText {#text} at (3,3) size 8x18
    1313          text run at (3,3) width 8: "2"
  • trunk/LayoutTests/platform/mac/fast/hidpi/image-set-border-image-simple-expected.txt

    r177774 r192955  
    88          text run at (0,0) width 775: "This test passes if the div below is a blue 100px square when the deviceScaleFactor is 1, and if it is a 100px green square"
    99          text run at (0,18) width 211: "when the deviceScaleFactor is 2."
    10       RenderBlock {DIV} at (0,36) size 120x120 [border: (10px none #000000)]
     10      RenderBlock {DIV} at (0,36) size 120x120 [border: (10px solid #000000)]
  • trunk/LayoutTests/platform/mac/fast/writing-mode/border-image-horizontal-bt-expected.txt

    r71465 r192955  
    44  RenderBlock {HTML} at (0,0) size 800x460
    55    RenderBody {BODY} at (8,8) size 784x444
    6       RenderInline {SPAN} at (0,0) size 80x323 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     6      RenderInline {SPAN} at (0,0) size 80x323 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    77        RenderBlock {DIV} at (101,117) size 25x0
    88        RenderBR {BR} at (126,95) size 0x100
  • trunk/LayoutTests/platform/mac/fast/writing-mode/border-image-vertical-lr-expected.txt

    r71465 r192955  
    44  RenderBlock {HTML} at (0,0) size 460x600
    55    RenderBody {BODY} at (8,8) size 444x584
    6       RenderInline {SPAN} at (0,0) size 323x80 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     6      RenderInline {SPAN} at (0,0) size 323x80 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    77        RenderBlock {DIV} at (99,101) size 0x25
    88        RenderBR {BR} at (77,126) size 100x0
  • trunk/LayoutTests/platform/mac/fast/writing-mode/border-image-vertical-rl-expected.txt

    r71043 r192955  
    44  RenderBlock {HTML} at (0,0) size 460x600
    55    RenderBody {BODY} at (8,8) size 444x584
    6       RenderInline {SPAN} at (0,0) size 323x80 [border: (21px none #000000) (30px none #000000) (21px none #000000)]
     6      RenderInline {SPAN} at (0,0) size 323x80 [border: (21px solid #000000) (30px solid #000000) (21px solid #000000)]
    77        RenderBlock {DIV} at (164,101) size 0x25
    88        RenderBR {BR} at (86,126) size 100x0
  • trunk/LayoutTests/platform/mac/svg/as-border-image/svg-as-border-image-2-expected.txt

    r177774 r192955  
    99            text run at (0,0) width 195: "SVG border-image"
    1010        RenderBlock (anonymous) at (1,68) size 368x369
    11           RenderBlock {DIV} at (10,10) size 160x160 [border: (30px none #000000)]
     11          RenderBlock {DIV} at (10,10) size 160x160 [border: (30px solid #000000)]
    1212          RenderText {#text} at (180,166) size 4x18
    1313            text run at (180,166) width 4: " "
    14           RenderBlock {DIV} at (194,10) size 160x160 [border: (30px none #000000)]
     14          RenderBlock {DIV} at (194,10) size 160x160 [border: (30px solid #000000)]
    1515          RenderText {#text} at (364,166) size 4x18
    1616            text run at (364,166) width 4: " "
    1717          RenderBR {BR} at (0,0) size 0x0
    18           RenderBlock {DIV} at (10,194) size 160x160 [border: (30px none #000000)]
     18          RenderBlock {DIV} at (10,194) size 160x160 [border: (30px solid #000000)]
    1919          RenderText {#text} at (180,350) size 4x18
    2020            text run at (180,350) width 4: " "
    21           RenderBlock {DIV} at (194,194) size 160x160 [border: (30px none #000000)]
     21          RenderBlock {DIV} at (194,194) size 160x160 [border: (30px solid #000000)]
    2222          RenderText {#text} at (0,0) size 0x0
    2323      RenderText {#text} at (370,418) size 4x18
     
    2828            text run at (0,0) width 196: "PNG border-image"
    2929        RenderBlock (anonymous) at (1,68) size 368x369
    30           RenderBlock {DIV} at (10,10) size 160x160 [border: (30px none #000000)]
     30          RenderBlock {DIV} at (10,10) size 160x160 [border: (30px solid #000000)]
    3131          RenderText {#text} at (180,166) size 4x18
    3232            text run at (180,166) width 4: " "
    33           RenderBlock {DIV} at (194,10) size 160x160 [border: (30px none #000000)]
     33          RenderBlock {DIV} at (194,10) size 160x160 [border: (30px solid #000000)]
    3434          RenderText {#text} at (364,166) size 4x18
    3535            text run at (364,166) width 4: " "
    3636          RenderBR {BR} at (0,0) size 0x0
    37           RenderBlock {DIV} at (10,194) size 160x160 [border: (30px none #000000)]
     37          RenderBlock {DIV} at (10,194) size 160x160 [border: (30px solid #000000)]
    3838          RenderText {#text} at (180,350) size 4x18
    3939            text run at (180,350) width 4: " "
    40           RenderBlock {DIV} at (194,194) size 160x160 [border: (30px none #000000)]
     40          RenderBlock {DIV} at (194,194) size 160x160 [border: (30px solid #000000)]
    4141          RenderText {#text} at (0,0) size 0x0
    4242      RenderText {#text} at (0,0) size 0x0
  • trunk/LayoutTests/platform/mac/svg/as-border-image/svg-as-border-image-expected.txt

    r177774 r192955  
    99            text run at (0,0) width 195: "SVG border-image"
    1010        RenderBlock (anonymous) at (1,68) size 368x369
    11           RenderBlock {DIV} at (10,10) size 160x160 [border: (30px none #000000)]
     11          RenderBlock {DIV} at (10,10) size 160x160 [border: (30px solid #000000)]
    1212          RenderText {#text} at (180,166) size 4x18
    1313            text run at (180,166) width 4: " "
    14           RenderBlock {DIV} at (194,10) size 160x160 [border: (30px none #000000)]
     14          RenderBlock {DIV} at (194,10) size 160x160 [border: (30px solid #000000)]
    1515          RenderText {#text} at (364,166) size 4x18
    1616            text run at (364,166) width 4: " "
    1717          RenderBR {BR} at (0,0) size 0x0
    18           RenderBlock {DIV} at (10,194) size 160x160 [border: (30px none #000000)]
     18          RenderBlock {DIV} at (10,194) size 160x160 [border: (30px solid #000000)]
    1919          RenderText {#text} at (180,350) size 4x18
    2020            text run at (180,350) width 4: " "
    21           RenderBlock {DIV} at (194,194) size 160x160 [border: (30px none #000000)]
     21          RenderBlock {DIV} at (194,194) size 160x160 [border: (30px solid #000000)]
    2222          RenderText {#text} at (0,0) size 0x0
    2323      RenderText {#text} at (370,418) size 4x18
     
    2828            text run at (0,0) width 196: "PNG border-image"
    2929        RenderBlock (anonymous) at (1,68) size 368x369
    30           RenderBlock {DIV} at (10,10) size 160x160 [border: (30px none #000000)]
     30          RenderBlock {DIV} at (10,10) size 160x160 [border: (30px solid #000000)]
    3131          RenderText {#text} at (180,166) size 4x18
    3232            text run at (180,166) width 4: " "
    33           RenderBlock {DIV} at (194,10) size 160x160 [border: (30px none #000000)]
     33          RenderBlock {DIV} at (194,10) size 160x160 [border: (30px solid #000000)]
    3434          RenderText {#text} at (364,166) size 4x18
    3535            text run at (364,166) width 4: " "
    3636          RenderBR {BR} at (0,0) size 0x0
    37           RenderBlock {DIV} at (10,194) size 160x160 [border: (30px none #000000)]
     37          RenderBlock {DIV} at (10,194) size 160x160 [border: (30px solid #000000)]
    3838          RenderText {#text} at (180,350) size 4x18
    3939            text run at (180,350) width 4: " "
    40           RenderBlock {DIV} at (194,194) size 160x160 [border: (30px none #000000)]
     40          RenderBlock {DIV} at (194,194) size 160x160 [border: (30px solid #000000)]
    4141          RenderText {#text} at (0,0) size 0x0
    4242      RenderText {#text} at (0,0) size 0x0
  • trunk/LayoutTests/svg/as-border-image/svg-as-border-image-2.html

    r91633 r192955  
    1717   
    1818    .svg > .rr {
     19        border-style: solid;
    1920        -webkit-border-image: url("resources/tiles-relative-size.svg") 30 30 30 30 repeat repeat;
    2021    }
    2122   
    2223    .svg > .rs {
     24        border-style: solid;
    2325        -webkit-border-image: url("resources/tiles-relative-size.svg") 30 30 30 30 repeat stretch;
    2426    }
    2527   
    2628    .svg > .sr {
     29        border-style: solid;
    2730        -webkit-border-image: url("resources/tiles-relative-size.svg") 30 30 30 30 stretch repeat;
    2831    }
    2932   
    3033    .svg > .ss {
     34        border-style: solid;
    3135        -webkit-border-image: url("resources/tiles-relative-size.svg") 30 30 30 30 stretch stretch;
    3236    }
    3337
    3438    .image > .rr {
     39        border-style: solid;
    3540        -webkit-border-image: url("resources/large-tiles.png") 30 30 30 30 repeat repeat;
    3641    }
    3742   
    3843    .image > .rs {
     44        border-style: solid;
    3945        -webkit-border-image: url("resources/large-tiles.png") 30 30 30 30 repeat stretch;
    4046    }
    4147   
    4248    .image > .sr {
     49        border-style: solid;
    4350        -webkit-border-image: url("resources/large-tiles.png") 30 30 30 30 stretch repeat;
    4451    }
    4552   
    4653    .image > .ss {
     54        border-style: solid;
    4755        -webkit-border-image: url("resources/large-tiles.png") 30 30 30 30 stretch stretch;
    4856    }
  • trunk/LayoutTests/svg/as-border-image/svg-as-border-image.html

    r91633 r192955  
    1616   
    1717    .svg > .rr {
     18        border-style: solid;
    1819        -webkit-border-image: url("resources/tiles-fixed-size.svg") 30 30 30 30 repeat repeat;
    1920    }
    2021   
    2122    .svg > .rs {
     23        border-style: solid;
    2224        -webkit-border-image: url("resources/tiles-fixed-size.svg") 30 30 30 30 repeat stretch;
    2325    }
    2426   
    2527    .svg > .sr {
     28        border-style: solid;
    2629        -webkit-border-image: url("resources/tiles-fixed-size.svg") 30 30 30 30 stretch repeat;
    2730    }
    2831   
    2932    .svg > .ss {
     33        border-style: solid;
    3034        -webkit-border-image: url("resources/tiles-fixed-size.svg") 30 30 30 30 stretch stretch;
    3135    }
     
    3337
    3438    .image > .rr {
     39        border-style: solid;
    3540        -webkit-border-image: url("resources/tiles.png") 30 30 30 30 repeat repeat;
    3641    }
    3742   
    3843    .image > .rs {
     44        border-style: solid;
    3945        -webkit-border-image: url("resources/tiles.png") 30 30 30 30 repeat stretch;
    4046    }
    4147   
    4248    .image > .sr {
     49        border-style: solid;
    4350        -webkit-border-image: url("resources/tiles.png") 30 30 30 30 stretch repeat;
    4451    }
    4552   
    4653    .image > .ss {
     54        border-style: solid;
    4755        -webkit-border-image: url("resources/tiles.png") 30 30 30 30 stretch stretch;
    4856    }
  • trunk/Source/WebCore/ChangeLog

    r192954 r192955  
     12015-12-02  Adenilson Cavalcanti  <cavalcantii@gmail.com>
     2
     3        [css border] border-image doesn't honor border-style
     4        https://bugs.webkit.org/show_bug.cgi?id=99922
     5
     6        Reviewed by Simon Fraser.
     7
     8        Ensure that WebKit will be compliant to css-backgrounds spec where a
     9        border with an image will only be rendered if there is a style defined.
     10
     11        Quote: "None: No border. Color and width are ignored (i.e., the border has width 0)".
     12        Reference: http://www.w3.org/TR/css3-background/#border-style
     13
     14        From W3C discussion: "The fact that these properties set the style of the border is
     15        normative". Reference: https://lists.w3.org/Archives/Public/www-style/2015Nov/0260.html
     16
     17        Test: fast/borders/border-image-should-not-display.html
     18
     19        * rendering/style/BorderData.h:
     20        (WebCore::BorderData::hasBorder):
     21        (WebCore::BorderData::borderLeftWidth):
     22        (WebCore::BorderData::borderRightWidth):
     23        (WebCore::BorderData::borderTopWidth):
     24        (WebCore::BorderData::borderBottomWidth):
     25        * rendering/style/BorderValue.h:
     26        (WebCore::BorderValue::nonZero):
     27        (WebCore::BorderValue::isVisible):
     28
    1292015-12-02  Eric Carlson  <eric.carlson@apple.com>
    230
  • trunk/Source/WebCore/rendering/style/BorderData.h

    r184895 r192955  
    4444    bool hasBorder() const
    4545    {
    46         bool haveImage = m_image.hasImage();
    47         return m_left.nonZero(!haveImage) || m_right.nonZero(!haveImage) || m_top.nonZero(!haveImage) || m_bottom.nonZero(!haveImage);
     46        return m_left.nonZero() || m_right.nonZero() || m_top.nonZero() || m_bottom.nonZero();
    4847    }
    4948
     
    6564        return false;
    6665    }
    67    
     66
    6867    float borderLeftWidth() const
    6968    {
    70         if (!m_image.hasImage() && (m_left.style() == BNONE || m_left.style() == BHIDDEN))
    71             return 0; 
     69        if (m_left.style() == BNONE || m_left.style() == BHIDDEN)
     70            return 0;
    7271        return m_left.width();
    7372    }
    74    
     73
    7574    float borderRightWidth() const
    7675    {
    77         if (!m_image.hasImage() && (m_right.style() == BNONE || m_right.style() == BHIDDEN))
     76        if (m_right.style() == BNONE || m_right.style() == BHIDDEN)
    7877            return 0;
    7978        return m_right.width();
    8079    }
    81    
     80
    8281    float borderTopWidth() const
    8382    {
    84         if (!m_image.hasImage() && (m_top.style() == BNONE || m_top.style() == BHIDDEN))
     83        if (m_top.style() == BNONE || m_top.style() == BHIDDEN)
    8584            return 0;
    8685        return m_top.width();
    8786    }
    88    
     87
    8988    float borderBottomWidth() const
    9089    {
    91         if (!m_image.hasImage() && (m_bottom.style() == BNONE || m_bottom.style() == BHIDDEN))
     90        if (m_bottom.style() == BNONE || m_bottom.style() == BHIDDEN)
    9291            return 0;
    9392        return m_bottom.width();
     
    9897        return FloatBoxExtent(borderTopWidth(), borderRightWidth(), borderBottomWidth(), borderLeftWidth());
    9998    }
    100    
     99
    101100    bool operator==(const BorderData& o) const
    102101    {
     
    104103               && m_topLeft == o.m_topLeft && m_topRight == o.m_topRight && m_bottomLeft == o.m_bottomLeft && m_bottomRight == o.m_bottomRight;
    105104    }
    106    
     105
    107106    bool operator!=(const BorderData& o) const
    108107    {
    109108        return !(*this == o);
    110109    }
    111    
     110
    112111    const BorderValue& left() const { return m_left; }
    113112    const BorderValue& right() const { return m_right; }
    114113    const BorderValue& top() const { return m_top; }
    115114    const BorderValue& bottom() const { return m_bottom; }
    116    
     115
    117116    const NinePieceImage& image() const { return m_image; }
    118    
     117
    119118    const LengthSize& topLeft() const { return m_topLeft; }
    120119    const LengthSize& topRight() const { return m_topRight; }
  • trunk/Source/WebCore/rendering/style/BorderValue.h

    r163152 r192955  
    4343    }
    4444
    45     bool nonZero(bool checkStyle = true) const
     45    bool nonZero() const
    4646    {
    47         return width() && (!checkStyle || m_style != BNONE);
     47        return width() && (m_style != BNONE);
    4848    }
    4949
     
    5353    }
    5454
    55     bool isVisible(bool checkStyle = true) const
     55    bool isVisible() const
    5656    {
    57         return nonZero(checkStyle) && !isTransparent() && (!checkStyle || m_style != BHIDDEN);
     57        return nonZero() && !isTransparent() && (m_style != BHIDDEN);
    5858    }
    5959
Note: See TracChangeset for help on using the changeset viewer.