Changeset 175721 in webkit
- Timestamp:
- Nov 6, 2014 3:20:53 PM (9 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 11 added
- 10 deleted
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r175716 r175721 1 2014-11-06 Bem Jones-Bey <bjonesbe@adobe.com> 2 3 [CSS Shapes] the spec-examples reftests are off by a few pixels 4 https://bugs.webkit.org/show_bug.cgi?id=135927 5 6 Reviewed by Zoltan Horvath. 7 8 Import new versions of the spec example tests that are js tests 9 instead of ref tests so that they can properly handle the small pixel 10 differences in rendering between platforms. 11 12 * TestExpectations: 13 * css3/shapes/spec-examples/shape-outside-010-expected.html: Removed. 14 * css3/shapes/spec-examples/shape-outside-010-expected.txt: Added. 15 * css3/shapes/spec-examples/shape-outside-010.html: 16 * css3/shapes/spec-examples/shape-outside-011-expected.html: Removed. 17 * css3/shapes/spec-examples/shape-outside-011-expected.txt: Added. 18 * css3/shapes/spec-examples/shape-outside-011.html: 19 * css3/shapes/spec-examples/shape-outside-012-expected.html: Removed. 20 * css3/shapes/spec-examples/shape-outside-012-expected.txt: Added. 21 * css3/shapes/spec-examples/shape-outside-012.html: 22 * css3/shapes/spec-examples/shape-outside-013-expected.html: Removed. 23 * css3/shapes/spec-examples/shape-outside-013-expected.txt: Added. 24 * css3/shapes/spec-examples/shape-outside-013.html: 25 * css3/shapes/spec-examples/shape-outside-014-expected.html: Removed. 26 * css3/shapes/spec-examples/shape-outside-014-expected.txt: Added. 27 * css3/shapes/spec-examples/shape-outside-014.html: 28 * css3/shapes/spec-examples/shape-outside-015-expected.html: Removed. 29 * css3/shapes/spec-examples/shape-outside-015-expected.txt: Added. 30 * css3/shapes/spec-examples/shape-outside-015.html: 31 * css3/shapes/spec-examples/shape-outside-016-expected.html: Removed. 32 * css3/shapes/spec-examples/shape-outside-016-expected.txt: Added. 33 * css3/shapes/spec-examples/shape-outside-016.html: 34 * css3/shapes/spec-examples/shape-outside-017-expected.html: Removed. 35 * css3/shapes/spec-examples/shape-outside-017-expected.txt: Added. 36 * css3/shapes/spec-examples/shape-outside-017.html: 37 * css3/shapes/spec-examples/shape-outside-018-expected.html: Removed. 38 * css3/shapes/spec-examples/shape-outside-018-expected.txt: Added. 39 * css3/shapes/spec-examples/shape-outside-018.html: 40 * css3/shapes/spec-examples/shape-outside-019-expected.html: Removed. 41 * css3/shapes/spec-examples/shape-outside-019-expected.txt: Added. 42 * css3/shapes/spec-examples/shape-outside-019.html: 43 * css3/shapes/spec-examples/support/spec-example-utils.js: Added. 44 (.runTest): 45 (approxShapeTest): 46 * css3/shapes/spec-examples/support/w3c-import.log: 47 * css3/shapes/spec-examples/w3c-import.log: 48 1 49 2014-11-06 Dean Jackson <dino@apple.com> 2 50 -
trunk/LayoutTests/TestExpectations
r175641 r175721 137 137 webkit.org/b/135923 css3/shapes/shape-outside/shape-image/gradients/shape-outside-radial-gradient-003.html [ ImageOnlyFailure ] 138 138 webkit.org/b/135923 css3/shapes/shape-outside/shape-image/gradients/shape-outside-radial-gradient-004.html [ ImageOnlyFailure ] 139 140 webkit.org/b/135927 css3/shapes/spec-examples/shape-outside-010.html [ ImageOnlyFailure ]141 webkit.org/b/135927 css3/shapes/spec-examples/shape-outside-011.html [ ImageOnlyFailure ]142 webkit.org/b/135927 css3/shapes/spec-examples/shape-outside-012.html [ ImageOnlyFailure ]143 webkit.org/b/135927 css3/shapes/spec-examples/shape-outside-013.html [ ImageOnlyFailure ]144 webkit.org/b/135927 css3/shapes/spec-examples/shape-outside-014.html [ ImageOnlyFailure ]145 webkit.org/b/135927 css3/shapes/spec-examples/shape-outside-015.html [ ImageOnlyFailure ]146 webkit.org/b/135927 css3/shapes/spec-examples/shape-outside-016.html [ ImageOnlyFailure ]147 webkit.org/b/135927 css3/shapes/spec-examples/shape-outside-017.html [ ImageOnlyFailure ]148 webkit.org/b/135927 css3/shapes/spec-examples/shape-outside-018.html [ ImageOnlyFailure ]149 webkit.org/b/135927 css3/shapes/spec-examples/shape-outside-019.html [ ImageOnlyFailure ]150 139 151 140 webkit.org/b/137788 css3/shapes/shape-outside/shape-image/shape-image-010.html [ ImageOnlyFailure ] -
trunk/LayoutTests/css3/shapes/spec-examples/shape-outside-010.html
r172733 r175721 4 4 <title>CSS Test: Shape from image - url(), alpha channel, opacity 0</title> 5 5 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"/> 6 <link rel="author" title="Bem Jones-Bey" href="mailto:bemjb@adobe.com"/> 6 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-image"/> 7 8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"/> 8 <link rel="match" href="reference/shape-outside-010-ref.html"/> 9 <meta name="flags" content="ahem"/> 10 <meta name="assert" content="This test verifies that the content flows around the 9 <meta name="flags" content="ahem dom"/> 10 <meta name="assert" content="This test verifies that the content flows around the 11 11 shape defined in the images alpha channel that is completely 12 12 transparent."/> … … 15 15 <style type="text/css"> 16 16 .container { 17 position: absolute;18 top: 70px;19 17 font-family: Ahem; 20 18 font-size: 20px; … … 29 27 -webkit-shape-outside: url("support/circle-no-shadow.png"); 30 28 } 31 #failure {32 width: 300px;33 color: red;34 z-index: -1;35 }36 #line-1, #line-5 { margin-left: 182px; }37 #line-2, #line-4 { margin-left: 199px; }38 #line-3 { margin-left: 201px; }39 29 </style> 30 <script src="../../../resources/testharness.js"></script> 31 <script src="../../../resources/testharnessreport.js"></script> 32 <script src="support/spec-example-utils.js"></script> 40 33 </head> 41 34 <body> … … 44 37 the long green bar is beneath the circle, and no bars intersect the circle. There 45 38 should be no red. 46 </p> 39 </p> 47 40 <div id="test" class="container"> 48 41 <img id="image" src="support/circle-no-shadow.png"/> 49 XXXXXX XXXXXX XXXXXX XXXXXX XXXXXX XXXXXXXXXXXXXXX 50 </div> 51 <div id="failure" class="container"> 42 <span id="line-0">XXXXXX</span> 52 43 <span id="line-1">XXXXXX</span> 53 44 <span id="line-2">XXXXXX</span> 54 45 <span id="line-3">XXXXXX</span> 55 46 <span id="line-4">XXXXXX</span> 56 <span id="line-5">XXXXXX</span> 57 XXXXXXXXXXXXXXX 47 <span id="line-5">XXXXXXXXXXXXXXX</span> 58 48 </div> 49 <div id="log"></div> 50 <script> 51 approxShapeTest('test', 'line-', 2, [182, 199, 201, 199, 182, 0]); 52 </script> 59 53 </body> 60 54 </html> -
trunk/LayoutTests/css3/shapes/spec-examples/shape-outside-011.html
r172733 r175721 4 4 <title>CSS Test: Shape from image - url(), alpha channel, opacity > 0</title> 5 5 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"/> 6 <link rel="author" title="Bem Jones-Bey" href="mailto:bemjb@adobe.com"/> 6 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-image"/> 7 8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"/> 8 <link rel="match" href="reference/shape-outside-011-ref.html"/> 9 <meta name="flags" content="ahem"/> 10 <meta name="assert" content="This test verifies that the content flows around the 9 <meta name="flags" content="ahem dom"/> 10 <meta name="assert" content="This test verifies that the content flows around the 11 11 shape defined in the images alpha channel that has some 12 12 opacity."/> … … 15 15 <style type="text/css"> 16 16 .container { 17 position: absolute;18 top: 70px;19 17 width: 400px; 20 18 font-family: Ahem; … … 29 27 -webkit-shape-outside: url("support/circle-shadow.png"); 30 28 } 31 #failure {32 width: 300px;33 color: red;34 z-index: -1;35 }36 #line-1, #line-5 { margin-left: 218px; }37 #line-2, #line-4 { margin-left: 236px; }38 #line-3 { margin-left: 238px; }39 #line-6 { margin-left: 160px; }40 29 </style> 30 <script src="../../../resources/testharness.js"></script> 31 <script src="../../../resources/testharnessreport.js"></script> 32 <script src="support/spec-example-utils.js"></script> 41 33 </head> 42 34 <body> … … 44 36 The test passes if the green horizontal bars are to the right of the circle, 45 37 and no bars intersect the circle's shadow. There should be no red. 46 </p> 38 </p> 47 39 <div id="test" class="container"> 48 40 <img id="image" src="support/circle-shadow.png"/> 49 XXXXXX XXXXXX XXXXXX XXXXXX XXXXXX XXXXXX 50 </div> 51 <div id="failure" class="container"> 41 <span id="line-0">XXXXXX</span> 52 42 <span id="line-1">XXXXXX</span> 53 43 <span id="line-2">XXXXXX</span> … … 55 45 <span id="line-4">XXXXXX</span> 56 46 <span id="line-5">XXXXXX</span> 57 <div id="line-6">XXXXXX</div>58 47 </div> 48 <div id="log"></div> 49 <script> 50 approxShapeTest('test', 'line-', 2, [218, 236, 238, 236, 218, 160]); 51 </script> 59 52 </body> 60 53 </html> -
trunk/LayoutTests/css3/shapes/spec-examples/shape-outside-012.html
r172733 r175721 4 4 <title>CSS Test: Shape from image - shape-image-threshold - 0.9</title> 5 5 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"/> 6 <link rel="author" title="Bem Jones-Bey" href="mailto:bemjb@adobe.com"/> 6 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-image"/> 7 8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"/> 8 9 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-image-threshold-property"/> 9 10 <link rel="match" href="reference/shape-outside-012-ref.html"/> 10 <meta name="flags" content="ahem "/>11 <meta name="assert" content="This test verifies content flows around a shape that is 12 defined in the image's alpha channel and adjusted by the 11 <meta name="flags" content="ahem dom"/> 12 <meta name="assert" content="This test verifies content flows around a shape that is 13 defined in the image's alpha channel and adjusted by the 13 14 image-threshold" /> 14 15 <!-- This test is derived from Example 7 in this version of the spec: … … 16 17 <style type="text/css"> 17 18 .container { 18 position: absolute;19 top: 70px;20 19 width: 400px; 21 height: 105px;22 20 font-family: Ahem; 23 21 font-size: 20px; … … 32 30 -webkit-shape-image-threshold: 0.9; 33 31 } 34 #failure {35 width: 300px;36 color: red;37 z-index: -1;38 }39 #line-1, #line-5 { margin-left: 181px; }40 #line-2, #line-4 { margin-left: 199px; }41 #line-3 { margin-left: 201px; }42 32 </style> 33 <script src="../../../resources/testharness.js"></script> 34 <script src="../../../resources/testharnessreport.js"></script> 35 <script src="support/spec-example-utils.js"></script> 43 36 </head> 44 37 <body> 45 38 <p> 46 The test passes if the short green horizontal bars are the right of the circle, all 47 intersect the shadow, none intersect the circle and the long green bar is beneath the 39 The test passes if the short green horizontal bars are the right of the circle, all 40 intersect the shadow, none intersect the circle and the long green bar is beneath the 48 41 circle. There should be no red. 49 42 </p> 50 43 <div id="test" class="container"> 51 44 <img id="test-image" src="support/circle-shadow.png"/> 52 XXXXXX XXXXXX XXXXXX XXXXXX XXXXXX XXXXXXXXXXXXXXX 53 </div> 54 <div id="failure" class="container"> 45 <span id="line-0">XXXXXX</span> 55 46 <span id="line-1">XXXXXX</span> 56 47 <span id="line-2">XXXXXX</span> 57 48 <span id="line-3">XXXXXX</span> 58 49 <span id="line-4">XXXXXX</span> 59 <span id="line-5">XXXXXX</span> 60 XXXXXXXXXXXXXXX 50 <span id="line-5">XXXXXXXXXXXXXXX</span> 61 51 </div> 52 <div id="log"></div> 53 <script> 54 approxShapeTest('test', 'line-', 2, [181, 199, 201, 199, 181, 0]); 55 </script> 62 56 </body> 63 57 </html> -
trunk/LayoutTests/css3/shapes/spec-examples/shape-outside-013.html
r172733 r175721 4 4 <title>CSS Test: Shape from image - shape-margin</title> 5 5 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"/> 6 <link rel="author" title="Bem Jones-Bey" href="mailto:bemjb@adobe.com"/> 6 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-image"/> 7 8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"/> 8 <link rel="match" href="reference/shape-outside-013-ref.html"/> 9 <meta name="flags" content="ahem"/> 10 <meta name="assert" content="This test verifies that the content flows around the 11 shape defined in the images alpha channel and adjusted by 9 <meta name="flags" content="ahem dom"/> 10 <meta name="assert" content="This test verifies that the content flows around the 11 shape defined in the images alpha channel and adjusted by 12 12 the shape-margin."/> 13 13 <!-- This test is derived from Example 7 in this version of the spec: 14 14 http://www.w3.org/TR/2014/WD-css-shapes-1-20140211/ --> 15 15 <style type="text/css"> 16 .container {17 position: absolute;18 top: 85px;19 left: 25px;20 font-family: Ahem;21 font-size: 20px;22 line-height: 2em;23 }24 16 #test { 17 position: relative; 25 18 width: 400px; 26 19 color: green; 20 font-family: Ahem; 21 font-size: 20px; 22 line-height: 2em; 27 23 } 28 24 #test-image { … … 33 29 #margin-circle { 34 30 position: absolute; 35 top: 70px;36 left: 10px;31 top: -15px; 32 left: -15px; 37 33 width: 230px; 38 34 height: 230px; 39 35 background-color: blue; 40 36 border-radius: 150px; 41 }42 #failure {43 width: 300px;44 color: red;45 37 z-index: -1; 46 38 } 47 #line-1, #line-5 { margin-left: 200px; }48 #line-2, #line-4 { margin-left: 214px; }49 #line-3 { margin-left: 216px; }50 #line-6 { margin-left: 158px; }51 39 </style> 40 <script src="../../../resources/testharness.js"></script> 41 <script src="../../../resources/testharnessreport.js"></script> 42 <script src="support/spec-example-utils.js"></script> 52 43 </head> 53 44 <body> … … 57 48 should be no red. 58 49 </p> 59 <div id="margin-circle"></div> 60 <div id="test" class="container"> 50 <div id="test"> 61 51 <img id="test-image" src="support/circle-no-shadow.png"/> 62 XXXXXX XXXXXX XXXXXX XXXXXX XXXXXX XXXXXX XXXXXXXXXXXXX 63 </div> 64 <div id="failure" class="container"> 52 <div id="margin-circle"></div> 53 <span id="line-0">XXXXXX</span> 65 54 <span id="line-1">XXXXXX</span> 66 55 <span id="line-2">XXXXXX</span> … … 68 57 <span id="line-4">XXXXXX</span> 69 58 <span id="line-5">XXXXXX</span> 70 <span id="line-6">XXXXXX</span> 71 XXXXXXXXXXXXX 59 <span id="line-6">XXXXXXXXXXXXX</span> 72 60 </div> 61 <div id="log"></div> 62 <script> 63 approxShapeTest('test', 'line-', 2, [200, 214, 216, 214, 200, 158, 0]); 64 </script> 73 65 </body> 74 66 </html> -
trunk/LayoutTests/css3/shapes/spec-examples/shape-outside-014.html
r172733 r175721 4 4 <title>CSS Test: Shape from box value - margin-box</title> 5 5 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"/> 6 <link rel="author" title="Bem Jones-Bey" href="mailto:bemjb@adobe.com"/> 6 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-box-values"/> 7 8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"/> 8 <link rel="match" href="reference/shape-outside-014-ref.html"/> 9 <meta name="flags" content="ahem"/> 9 <meta name="flags" content="ahem dom"/> 10 10 <meta name="assert" content="This test verifies that content wraps around a shape 11 11 defined by its margin box."/> … … 13 13 http://www.w3.org/TR/2014/WD-css-shapes-1-20140211/ --> 14 14 <style type="text/css"> 15 .container{16 position: absolute;17 top: 70px;15 #test { 16 color: green; 17 position: relative; 18 18 width: 400px; 19 19 font-family: Ahem; 20 20 font-size: 20px; 21 21 line-height: 2em; 22 }23 #test {24 color: green;25 22 } 26 23 #box { … … 34 31 } 35 32 #border-shape { 33 position: absolute; 34 top: 0px; 35 left: 0px; 36 36 width: 160px; 37 37 height: 160px; … … 41 41 z-index: -1; 42 42 } 43 #failure {44 color: red;45 z-index: -2;46 }47 #line-1, #line-5 { margin-left: 180px; }48 #line-2, #line-4 { margin-left: 198px; }49 #line-3 { margin-left: 200px; }50 51 43 </style> 44 <script src="../../../resources/testharness.js"></script> 45 <script src="../../../resources/testharnessreport.js"></script> 46 <script src="support/spec-example-utils.js"></script> 52 47 </head> 53 48 <body> … … 58 53 <div id="test" class="container"> 59 54 <div id="box"></div> 60 XXXXXX XXXXXX XXXXXX XXXXXX XXXXXX XXXXXXXXXXXXXXX 61 </div> 62 <div id="border-shape" class="container"></div> 63 <div id="failure" class="container"> 55 <div id="border-shape"></div> 56 <span id="line-0">XXXXXX</span> 64 57 <span id="line-1">XXXXXX</span> 65 58 <span id="line-2">XXXXXX</span> 66 59 <span id="line-3">XXXXXX</span> 67 60 <span id="line-4">XXXXXX</span> 68 <span id="line-5">XXXXXX</span> 69 XXXXXXXXXXXXXXX 61 <span id="line-5">XXXXXXXXXXXXXXX</span> 70 62 </div> 63 <div id="log"></div> 64 <script> 65 approxShapeTest('test', 'line-', 3, [182, 198, 200, 198, 182, 0]); 66 </script> 71 67 </body> 72 68 </html> -
trunk/LayoutTests/css3/shapes/spec-examples/shape-outside-015.html
r172733 r175721 4 4 <title>CSS Test: Shape from box value - border-box</title> 5 5 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"/> 6 <link rel="author" title="Bem Jones-Bey" href="mailto:bemjb@adobe.com"/> 6 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-box-values"/> 7 8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"/> 8 <link rel="match" href="reference/shape-outside-015-ref.html"/> 9 <meta name="flags" content="ahem"/> 9 <meta name="flags" content="ahem dom"/> 10 10 <meta name="assert" content="This test verifies that content wraps around a shape 11 11 defined by its border box."/> … … 13 13 http://www.w3.org/TR/2014/WD-css-shapes-1-20140211/ --> 14 14 <style type="text/css"> 15 .container { 16 position: absolute; 17 top: 70px; 15 #test { 18 16 width: 400px; 17 color: green; 19 18 font-family: Ahem; 20 19 font-size: 20px; 21 20 line-height: 2em; 22 }23 #test {24 color: green;25 21 } 26 22 #box { … … 33 29 -webkit-shape-outside: border-box; 34 30 } 35 #failure {36 color: red;37 z-index: -2;38 }39 #line-1, #line-5 { margin-left: 185px; }40 #line-2, #line-4 { margin-left: 199px; }41 #line-3 { margin-left: 200px; }42 43 31 </style> 32 <script src="../../../resources/testharness.js"></script> 33 <script src="../../../resources/testharnessreport.js"></script> 34 <script src="support/spec-example-utils.js"></script> 44 35 </head> 45 36 <body> … … 48 39 the long green bar is beneath it, and no bars intersect it. There should be no red. 49 40 </p> 50 <div id="test" class="container">41 <div id="test"> 51 42 <div id="box"></div> 52 XXXXXX XXXXXX XXXXXX XXXXXX XXXXXX XXXXXXXXXXXXXXX 53 </div> 54 <div id="failure" class="container"> 43 <span id="line-0">XXXXXX</span> 55 44 <span id="line-1">XXXXXX</span> 56 45 <span id="line-2">XXXXXX</span> 57 46 <span id="line-3">XXXXXX</span> 58 47 <span id="line-4">XXXXXX</span> 59 <span id="line-5">XXXXXX</span> 60 XXXXXXXXXXXXXXX 48 <span id="line-5">XXXXXXXXXXXXXXX</span> 61 49 </div> 50 <div id="log"></div> 51 <script> 52 approxShapeTest('test', 'line-', 2, [185, 199, 200, 199, 185, 0]); 53 </script> 62 54 </body> 63 55 </html> -
trunk/LayoutTests/css3/shapes/spec-examples/shape-outside-016.html
r172733 r175721 4 4 <title>CSS Test: Shape from box value - padding-box</title> 5 5 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"/> 6 <link rel="author" title="Bem Jones-Bey" href="mailto:bemjb@adobe.com"/> 6 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-box-values"/> 7 8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"/> 8 <link rel="match" href="reference/shape-outside-015-ref.html"/> 9 <meta name="flags" content="ahem"/> 9 <meta name="flags" content="ahem dom"/> 10 10 <meta name="assert" content="This test verifies that content wraps around a shape 11 11 defined by its padding box."/> … … 13 13 http://www.w3.org/TR/2014/WD-css-shapes-1-20140211/ --> 14 14 <style type="text/css"> 15 .container { 16 position: absolute; 17 top: 70px; 15 #test { 16 color: green; 18 17 width: 400px; 19 18 font-family: Ahem; 20 19 font-size: 20px; 21 20 line-height: 2em; 22 }23 #test {24 color: green;25 21 } 26 22 #box { … … 33 29 -webkit-shape-outside: padding-box; 34 30 } 35 #failure {36 color: red;37 z-index: -2;38 }39 #line-1, #line-5 { margin-left: 185px; }40 #line-2, #line-4 { margin-left: 199px; }41 #line-3 { margin-left: 200px; }42 31 </style> 32 <script src="../../../resources/testharness.js"></script> 33 <script src="../../../resources/testharnessreport.js"></script> 34 <script src="support/spec-example-utils.js"></script> 43 35 </head> 44 36 <body> … … 47 39 the long green bar is beneath it, and no bars intersect it. There should be no red. 48 40 </p> 49 <div id="test" class="container">41 <div id="test"> 50 42 <div id="box"></div> 51 XXXXXX XXXXXX XXXXXX XXXXXX XXXXXX XXXXXXXXXXXXXXX 52 </div> 53 <div id="failure" class="container"> 43 <span id="line-0">XXXXXX</span> 54 44 <span id="line-1">XXXXXX</span> 55 45 <span id="line-2">XXXXXX</span> 56 46 <span id="line-3">XXXXXX</span> 57 47 <span id="line-4">XXXXXX</span> 58 <span id="line-5">XXXXXX</span> 59 XXXXXXXXXXXXXXX 48 <span id="line-5">XXXXXXXXXXXXXXX</span> 60 49 </div> 50 <div id="log"></div> 51 <script> 52 approxShapeTest('test', 'line-', 2, [185, 199, 200, 199, 185, 0]); 53 </script> 61 54 </body> 62 55 </html> -
trunk/LayoutTests/css3/shapes/spec-examples/shape-outside-017.html
r172733 r175721 4 4 <title>CSS Test: Shape from box value - content-box</title> 5 5 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"/> 6 <link rel="author" title="Bem Jones-Bey" href="mailto:bemjb@adobe.com"/> 6 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-box-values"/> 7 8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"/> 8 <link rel="match" href="reference/shape-outside-015-ref.html"/> 9 <meta name="flags" content="ahem"/> 9 <meta name="flags" content="ahem dom"/> 10 10 <meta name="assert" content="This test verifies that content wraps around a shape 11 11 defined by its content box."/> … … 13 13 http://www.w3.org/TR/2014/WD-css-shapes-1-20140211/ --> 14 14 <style type="text/css"> 15 .container { 16 position: absolute; 17 top: 70px; 15 #test { 16 color: green; 18 17 width: 400px; 19 18 font-family: Ahem; 20 19 font-size: 20px; 21 20 line-height: 2em; 22 }23 #test {24 color: green;25 21 } 26 22 #box { … … 32 28 -webkit-shape-outside: content-box; 33 29 } 34 #failure {35 color: red;36 z-index: -2;37 }38 #line-1, #line-5 { margin-left: 185px; }39 #line-2, #line-4 { margin-left: 199px; }40 #line-3 { margin-left: 200px; }41 42 30 </style> 31 <script src="../../../resources/testharness.js"></script> 32 <script src="../../../resources/testharnessreport.js"></script> 33 <script src="support/spec-example-utils.js"></script> 43 34 </head> 44 35 <body> … … 47 38 the long green bar is beneath it, and no bars intersect it. There should be no red. 48 39 </p> 49 <div id="test" class="container">40 <div id="test"> 50 41 <div id="box"></div> 51 XXXXXX XXXXXX XXXXXX XXXXXX XXXXXX XXXXXXXXXXXXXXX 52 </div> 53 <div id="failure" class="container"> 42 <span id="line-0">XXXXXX</span> 54 43 <span id="line-1">XXXXXX</span> 55 44 <span id="line-2">XXXXXX</span> 56 45 <span id="line-3">XXXXXX</span> 57 46 <span id="line-4">XXXXXX</span> 58 <span id="line-5">XXXXXX</span> 59 XXXXXXXXXXXXXXX 47 <span id="line-5">XXXXXXXXXXXXXXX</span> 60 48 </div> 49 <div id="log"></div> 50 <script> 51 approxShapeTest('test', 'line-', 2, [185, 199, 200, 199, 185, 0]); 52 </script> 61 53 </body> 62 54 </html> -
trunk/LayoutTests/css3/shapes/spec-examples/shape-outside-018.html
r172733 r175721 4 4 <title>CSS Test: shape-margin offset from a polygonal shape-outside</title> 5 5 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"/> 6 <link rel="author" title="Bem Jones-Bey" href="mailto:bemjb@adobe.com"/> 6 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-box-values"/> 7 8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"/> 8 <link rel="match" href="reference/shape-outside-018-ref.html"/> 9 <meta name="flags" content="ahem"/> 9 <meta name="flags" content="ahem dom"/> 10 10 <meta name="assert" content="This test verifies that that content flows around the shape-margin 11 11 defined on a polygonal shape-outside."/> … … 13 13 http://www.w3.org/TR/2014/WD-css-shapes-1-20140211/ --> 14 14 <style type="text/css"> 15 .container{16 position: absolute;17 top: 70px;15 #test { 16 position: relative; 17 color: green; 18 18 width: 300px; 19 19 font-family: Ahem; 20 20 font-size: 20px; 21 21 line-height: 2em; 22 }23 #test {24 color: green;25 22 } 26 23 #shape-box { … … 33 30 img { 34 31 position: absolute; 35 top: 70px; 32 top: 0px; 33 left: 0px; 36 34 z-index: -1; 37 35 } 38 #failure {39 color: red;40 z-index: -2;41 }42 #line-1 { margin-left: 48px; }43 #line-2 { margin-left: 88px; }44 #line-3 { margin-left: 128px; }45 #line-4 { margin-left: 168px; }46 #line-5 { margin-left: 180px; }47 36 </style> 37 <script src="../../../resources/testharness.js"></script> 38 <script src="../../../resources/testharnessreport.js"></script> 39 <script src="support/spec-example-utils.js"></script> 48 40 </head> 49 41 <body> 50 42 <p> 51 The test passes if the longest green horizontal bar is beneath the triangle and the 43 The test passes if the longest green horizontal bar is beneath the triangle and the 52 44 rest of them are to its right and none intersect it. There should be no red. 53 45 </p> 54 <div id="test" class="container">46 <div id="test"> 55 47 <div id="shape-box"></div> 56 XXXXXXXXXX XXXXXXXX XXXXXX XXXX XXX XXXXXXXXXXXX 48 <img src="support/rounded-triangle.svg"> 49 <span id="line-0">XXXXXXXXXX</span> 50 <span id="line-1">XXXXXXXX</span> 51 <span id="line-2">XXXXXX</span> 52 <span id="line-3">XXXX</span> 53 <span id="line-4">XXX</span> 54 <span id="line-5">XXXXXXXXXXXX</span> 57 55 </div> 58 <img src="support/rounded-triangle.svg"> 59 <div id="failure" class="container"> 60 <span id="line-1">XXXXXXXXXX</span> 61 <span id="line-2">XXXXXXXX</span> 62 <span id="line-3">XXXXXX</span> 63 <span id="line-4">XXXX</span> 64 <span id="line-5">XXX</span> 65 XXXXXXXXXXXX 66 </div> 56 <div id="log"></div> 57 <script> 58 approxShapeTest('test', 'line-', 2, [48, 88, 128, 168, 180, 0]); 59 </script> 67 60 </body> 68 61 </html> -
trunk/LayoutTests/css3/shapes/spec-examples/shape-outside-019.html
r172733 r175721 4 4 <title>CSS Test: Shape from image - alpha channel, opacity > 0 + shape-margin</title> 5 5 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"/> 6 <link rel="author" title="Bem Jones-Bey" href="mailto:bemjb@adobe.com"/> 6 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-image"/> 7 8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-property"/> 8 <link rel="match" href="reference/shape-outside-019-ref.html"/> 9 <meta name="flags" content="ahem"/> 10 <meta name="assert" content="This test verifies that the content flows around the 9 <meta name="flags" content="ahem dom"/> 10 <meta name="assert" content="This test verifies that the content flows around the 11 11 shape defined in the images alpha channel and the shape-margin."/> 12 12 <!-- This test is derived from Example 11 in this version of the spec: 13 13 http://www.w3.org/TR/2014/WD-css-shapes-1-20140211/ --> 14 14 <style type="text/css"> 15 .container {16 position: absolute;17 top: 70px;18 width: 400px;19 font-family: Ahem;20 font-size: 20px;21 line-height: 2em;22 }23 15 #test { 16 position: relative; 24 17 color: green; 18 width: 400px; 19 font-family: Ahem; 20 font-size: 20px; 21 line-height: 2em; 25 22 } 26 23 #image { … … 31 28 #margin-circle { 32 29 position: absolute; 33 top: 70px;34 left: 10px;30 top: 0px; 31 left: 0px; 35 32 width: 300px; 36 33 height: 300px; 37 34 background-color: black; 38 -webkit-clip-path: ellipse(1 15px 100px at 140px 100px);35 -webkit-clip-path: ellipse(141px 127px at 115px 100px); 39 36 z-index: -1; 40 37 } 41 #failure {42 width: 300px;43 color: red;44 z-index: -2;45 }46 #line-1, #line-5 { margin-left: 242px; }47 #line-2, #line-4 { margin-left: 256px; }48 #line-3 { margin-left: 258px; }49 #line-6 { margin-left: 204px; }50 38 </style> 39 <script src="../../../resources/testharness.js"></script> 40 <script src="../../../resources/testharnessreport.js"></script> 41 <script src="support/spec-example-utils.js"></script> 51 42 </head> 52 43 <body> … … 55 46 of circle, the long green bar is beneath it, and no bars intersect the black. 56 47 There should be no red. 57 </p> 58 <div id="test" class="container">48 </p> 49 <div id="test"> 59 50 <img id="image" src="support/circle-shadow.png"/> 60 XXXXXX XXXXXX XXXXXX XXXXXX XXXXXX XXXXXX XXXXXXXXXXXXXXX 61 </div> 62 <div id="margin-circle"></div> 63 <div id="failure" class="container"> 51 <div id="margin-circle"></div> 52 <span id="line-0">XXXXXX</span> 64 53 <span id="line-1">XXXXXX</span> 65 54 <span id="line-2">XXXXXX</span> … … 67 56 <span id="line-4">XXXXXX</span> 68 57 <span id="line-5">XXXXXX</span> 69 <span id="line-6">XXXXXX</span> 70 <div id="line-7">XXXXXXXXXXXXXXX</div> 58 <span id="line-6">XXXXXXXXXXXXXXX</span> 71 59 </div> 60 <div id="log"></div> 61 <script> 62 approxShapeTest('test', 'line-', 2, [242, 256, 258, 256, 242, 204, 0]); 63 </script> 72 64 </body> 73 65 </html> -
trunk/LayoutTests/css3/shapes/spec-examples/support/w3c-import.log
r175255 r175721 11 11 12 12 ------------------------------------------------------------------------ 13 Last Import: 2014-1 0-27 11:2313 Last Import: 2014-11-06 09:44 14 14 ------------------------------------------------------------------------ 15 15 Properties requiring vendor prefixes: … … 19 19 ------------------------------------------------------------------------ 20 20 List of files: 21 /LayoutTests/css3/shapes/spec-examples/support/circle-no-shadow.png 22 /LayoutTests/css3/shapes/spec-examples/support/circle-shadow.png 23 /LayoutTests/css3/shapes/spec-examples/support/rounded-triangle.svg 21 /LayoutTests/w3c/css-shapes-1/spec-examples/support/circle-no-shadow.png 22 /LayoutTests/w3c/css-shapes-1/spec-examples/support/circle-shadow.png 23 /LayoutTests/w3c/css-shapes-1/spec-examples/support/rounded-triangle.svg 24 /LayoutTests/w3c/css-shapes-1/spec-examples/support/spec-example-utils.js -
trunk/LayoutTests/css3/shapes/spec-examples/w3c-import.log
r175255 r175721 11 11 12 12 ------------------------------------------------------------------------ 13 Last Import: 2014-1 0-27 11:2313 Last Import: 2014-11-06 09:44 14 14 ------------------------------------------------------------------------ 15 15 Properties requiring vendor prefixes: … … 22 22 ------------------------------------------------------------------------ 23 23 List of files: 24 /LayoutTests/css3/shapes/spec-examples/shape-outside-001-expected.html 25 /LayoutTests/css3/shapes/spec-examples/shape-outside-001.html 26 /LayoutTests/css3/shapes/spec-examples/shape-outside-002-expected.html 27 /LayoutTests/css3/shapes/spec-examples/shape-outside-002.html 28 /LayoutTests/css3/shapes/spec-examples/shape-outside-003-expected.html 29 /LayoutTests/css3/shapes/spec-examples/shape-outside-003.html 30 /LayoutTests/css3/shapes/spec-examples/shape-outside-004-expected.html 31 /LayoutTests/css3/shapes/spec-examples/shape-outside-004.html 32 /LayoutTests/css3/shapes/spec-examples/shape-outside-005-expected.html 33 /LayoutTests/css3/shapes/spec-examples/shape-outside-005.html 34 /LayoutTests/css3/shapes/spec-examples/shape-outside-006-expected.html 35 /LayoutTests/css3/shapes/spec-examples/shape-outside-006.html 36 /LayoutTests/css3/shapes/spec-examples/shape-outside-007-expected.html 37 /LayoutTests/css3/shapes/spec-examples/shape-outside-007.html 38 /LayoutTests/css3/shapes/spec-examples/shape-outside-008-expected.html 39 /LayoutTests/css3/shapes/spec-examples/shape-outside-008.html 40 /LayoutTests/css3/shapes/spec-examples/shape-outside-010-expected.html 41 /LayoutTests/css3/shapes/spec-examples/shape-outside-010.html 42 /LayoutTests/css3/shapes/spec-examples/shape-outside-011-expected.html 43 /LayoutTests/css3/shapes/spec-examples/shape-outside-011.html 44 /LayoutTests/css3/shapes/spec-examples/shape-outside-012-expected.html 45 /LayoutTests/css3/shapes/spec-examples/shape-outside-012.html 46 /LayoutTests/css3/shapes/spec-examples/shape-outside-013-expected.html 47 /LayoutTests/css3/shapes/spec-examples/shape-outside-013.html 48 /LayoutTests/css3/shapes/spec-examples/shape-outside-014-expected.html 49 /LayoutTests/css3/shapes/spec-examples/shape-outside-014.html 50 /LayoutTests/css3/shapes/spec-examples/shape-outside-015-expected.html 51 /LayoutTests/css3/shapes/spec-examples/shape-outside-015.html 52 /LayoutTests/css3/shapes/spec-examples/shape-outside-016-expected.html 53 /LayoutTests/css3/shapes/spec-examples/shape-outside-016.html 54 /LayoutTests/css3/shapes/spec-examples/shape-outside-017-expected.html 55 /LayoutTests/css3/shapes/spec-examples/shape-outside-017.html 56 /LayoutTests/css3/shapes/spec-examples/shape-outside-018-expected.html 57 /LayoutTests/css3/shapes/spec-examples/shape-outside-018.html 58 /LayoutTests/css3/shapes/spec-examples/shape-outside-019-expected.html 59 /LayoutTests/css3/shapes/spec-examples/shape-outside-019.html 24 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-001-expected.html 25 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-001.html 26 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-002-expected.html 27 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-002.html 28 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-003-expected.html 29 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-003.html 30 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-004-expected.html 31 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-004.html 32 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-005-expected.html 33 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-005.html 34 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-006-expected.html 35 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-006.html 36 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-007-expected.html 37 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-007.html 38 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-008-expected.html 39 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-008.html 40 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-010.html 41 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-011.html 42 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-012.html 43 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-013.html 44 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-014.html 45 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-015.html 46 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-016.html 47 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-017.html 48 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-018.html 49 /LayoutTests/w3c/css-shapes-1/spec-examples/shape-outside-019.html
Note: See TracChangeset
for help on using the changeset viewer.