| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>CSS Test: Shape from box value - content-box</title> | 4 <title>CSS Test: Shape from box value - content-box</title> |
| 5 <link rel="author" title="Rebecca Hauck" href="mailto:rhauck@adobe.com"/> | 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 <link rel="author" title="Bem Jones-Bey" href="mailto:bemjb@adobe.com"/> |
| 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-box-va
lues"/> | 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-box-va
lues"/> |
| 8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-prop
erty"/> | 8 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shape-outside-prop
erty"/> |
| 9 <meta name="flags" content="ahem dom"/> | 9 <meta name="flags" content="ahem dom"/> |
| 10 <meta name="assert" content="This test verifies that content wraps around a
shape | 10 <meta name="assert" content="This test verifies that content wraps around a
shape |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 } | 21 } |
| 22 #box { | 22 #box { |
| 23 float: left; | 23 float: left; |
| 24 width: 200px; | 24 width: 200px; |
| 25 height: 200px; | 25 height: 200px; |
| 26 background-color: lightblue; | 26 background-color: lightblue; |
| 27 border-radius: 90px; | 27 border-radius: 90px; |
| 28 shape-outside: content-box; | 28 shape-outside: content-box; |
| 29 } | 29 } |
| 30 </style> | 30 </style> |
| 31 <script src="../../../../resources/testharness.js"></script> | 31 <script src="/resources/testharness.js"></script> |
| 32 <script src="../../../../resources/testharnessreport.js"></script> | 32 <script src="/resources/testharnessreport.js"></script> |
| 33 <script src="support/spec-example-utils.js"></script> | 33 <script src="support/spec-example-utils.js"></script> |
| 34 </head> | 34 </head> |
| 35 <body> | 35 <body> |
| 36 <p> | 36 <p> |
| 37 The test passes if the short green horizontal bars are the right of the
shape, | 37 The test passes if the short green horizontal bars are the right of the
shape, |
| 38 the long green bar is beneath it, and no bars intersect it. There should
be no red. | 38 the long green bar is beneath it, and no bars intersect it. There should
be no red. |
| 39 </p> | 39 </p> |
| 40 <div id="test"> | 40 <div id="test"> |
| 41 <div id="box"></div> | 41 <div id="box"></div> |
| 42 <span id="line-0">XXXXXX</span> | 42 <span id="line-0">XXXXXX</span> |
| 43 <span id="line-1">XXXXXX</span> | 43 <span id="line-1">XXXXXX</span> |
| 44 <span id="line-2">XXXXXX</span> | 44 <span id="line-2">XXXXXX</span> |
| 45 <span id="line-3">XXXXXX</span> | 45 <span id="line-3">XXXXXX</span> |
| 46 <span id="line-4">XXXXXX</span> | 46 <span id="line-4">XXXXXX</span> |
| 47 <span id="line-5">XXXXXXXXXXXXXXX</span> | 47 <span id="line-5">XXXXXXXXXXXXXXX</span> |
| 48 </div> | 48 </div> |
| 49 <div id="log"></div> | 49 <div id="log"></div> |
| 50 <script> | 50 <script> |
| 51 approxShapeTest('test', 'line-', 2, [185, 199, 200, 199, 185, 0]); | 51 approxShapeTest('test', 'line-', 2, [185, 199, 200, 199, 185, 0]); |
| 52 </script> | 52 </script> |
| 53 </body> | 53 </body> |
| 54 </html> | 54 </html> |
| OLD | NEW |