OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>CSS Test: shape-margin offset from a polygonal shape-outside</title> | 4 <title>CSS Test: shape-margin offset from a polygonal shape-outside</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 that content flows arou
nd the shape-margin | 10 <meta name="assert" content="This test verifies that that content flows arou
nd the shape-margin |
11 defined on a polygonal shape-outside."/> | 11 defined on a polygonal shape-outside."/> |
12 <!-- This test is derived from Example 10 in this version of the spec: | 12 <!-- This test is derived from Example 10 in this version of the spec: |
13 http://www.w3.org/TR/2014/WD-css-shapes-1-20140211/ --> | 13 http://www.w3.org/TR/2014/WD-css-shapes-1-20140211/ --> |
14 <style type="text/css"> | 14 <style type="text/css"> |
15 #test { | 15 #test { |
16 position: relative; | 16 position: relative; |
17 color: green; | 17 color: green; |
18 width: 300px; | 18 width: 300px; |
19 font-family: Ahem; | 19 font-family: Ahem; |
20 font-size: 20px; | 20 font-size: 20px; |
21 line-height: 2em; | 21 line-height: 2em; |
22 } | 22 } |
23 #shape-box { | 23 #shape-box { |
(...skipping 28 matching lines...) Expand all Loading... |
52 <span id="line-3">XXXX</span> | 52 <span id="line-3">XXXX</span> |
53 <span id="line-4">XXX</span> | 53 <span id="line-4">XXX</span> |
54 <span id="line-5">XXXXXXXXXXXX</span> | 54 <span id="line-5">XXXXXXXXXXXX</span> |
55 </div> | 55 </div> |
56 <div id="log"></div> | 56 <div id="log"></div> |
57 <script> | 57 <script> |
58 approxShapeTest('test', 'line-', 2, [48, 88, 128, 168, 180, 0]); | 58 approxShapeTest('test', 'line-', 2, [48, 88, 128, 168, 180, 0]); |
59 </script> | 59 </script> |
60 </body> | 60 </body> |
61 </html> | 61 </html> |
OLD | NEW |