| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>CSS Test: Shape from box value - margin-box</title> | 4 <title>CSS Test: Shape from box value - margin-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 23 matching lines...) Expand all Loading... |
| 34 top: 0px; | 34 top: 0px; |
| 35 left: 0px; | 35 left: 0px; |
| 36 width: 160px; | 36 width: 160px; |
| 37 height: 160px; | 37 height: 160px; |
| 38 background-color: lightblue; | 38 background-color: lightblue; |
| 39 border: 20px solid lightblue; | 39 border: 20px solid lightblue; |
| 40 border-radius: 90px; | 40 border-radius: 90px; |
| 41 z-index: -1; | 41 z-index: -1; |
| 42 } | 42 } |
| 43 </style> | 43 </style> |
| 44 <script src="../../../../resources/testharness.js"></script> | 44 <script src="/resources/testharness.js"></script> |
| 45 <script src="../../../../resources/testharnessreport.js"></script> | 45 <script src="/resources/testharnessreport.js"></script> |
| 46 <script src="support/spec-example-utils.js"></script> | 46 <script src="support/spec-example-utils.js"></script> |
| 47 </head> | 47 </head> |
| 48 <body> | 48 <body> |
| 49 <p> | 49 <p> |
| 50 The test passes if the short green horizontal bars are the right of the
shape, | 50 The test passes if the short green horizontal bars are the right of the
shape, |
| 51 the long green bar is beneath it, and no bars intersect it. There should
be no red. | 51 the long green bar is beneath it, and no bars intersect it. There should
be no red. |
| 52 </p> | 52 </p> |
| 53 <div id="test" class="container"> | 53 <div id="test" class="container"> |
| 54 <div id="box"></div> | 54 <div id="box"></div> |
| 55 <div id="border-shape"></div> | 55 <div id="border-shape"></div> |
| 56 <span id="line-0">XXXXXX</span> | 56 <span id="line-0">XXXXXX</span> |
| 57 <span id="line-1">XXXXXX</span> | 57 <span id="line-1">XXXXXX</span> |
| 58 <span id="line-2">XXXXXX</span> | 58 <span id="line-2">XXXXXX</span> |
| 59 <span id="line-3">XXXXXX</span> | 59 <span id="line-3">XXXXXX</span> |
| 60 <span id="line-4">XXXXXX</span> | 60 <span id="line-4">XXXXXX</span> |
| 61 <span id="line-5">XXXXXXXXXXXXXXX</span> | 61 <span id="line-5">XXXXXXXXXXXXXXX</span> |
| 62 </div> | 62 </div> |
| 63 <div id="log"></div> | 63 <div id="log"></div> |
| 64 <script> | 64 <script> |
| 65 approxShapeTest('test', 'line-', 3, [182, 198, 200, 198, 182, 0]); | 65 approxShapeTest('test', 'line-', 3, [182, 198, 200, 198, 182, 0]); |
| 66 </script> | 66 </script> |
| 67 </body> | 67 </body> |
| 68 </html> | 68 </html> |
| OLD | NEW |