OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>CSS Test: Shape from image - shape-margin</title> | 4 <title>CSS Test: Shape from image - shape-margin</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-image"
/> | 7 <link rel="help" href="http://www.w3.org/TR/css-shapes-1/#shapes-from-image"
/> |
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 the content flows aroun
d the | 10 <meta name="assert" content="This test verifies that the content flows aroun
d the |
11 shape defined in the images alpha channel and a
djusted by | 11 shape defined in the images alpha channel and a
djusted by |
12 the shape-margin."/> | 12 the shape-margin."/> |
13 <!-- This test is derived from Example 7 in this version of the spec: | 13 <!-- This test is derived from Example 7 in this version of the spec: |
14 http://www.w3.org/TR/2014/WD-css-shapes-1-20140211/ --> | 14 http://www.w3.org/TR/2014/WD-css-shapes-1-20140211/ --> |
15 <style type="text/css"> | 15 <style type="text/css"> |
16 #test { | 16 #test { |
17 position: relative; | 17 position: relative; |
18 width: 400px; | 18 width: 400px; |
19 color: green; | 19 color: green; |
20 font-family: Ahem; | 20 font-family: Ahem; |
21 font-size: 20px; | 21 font-size: 20px; |
22 line-height: 2em; | 22 line-height: 2em; |
23 } | 23 } |
24 #test-image { | 24 #test-image { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 <span id="line-4">XXXXXX</span> | 57 <span id="line-4">XXXXXX</span> |
58 <span id="line-5">XXXXXX</span> | 58 <span id="line-5">XXXXXX</span> |
59 <span id="line-6">XXXXXXXXXXXXX</span> | 59 <span id="line-6">XXXXXXXXXXXXX</span> |
60 </div> | 60 </div> |
61 <div id="log"></div> | 61 <div id="log"></div> |
62 <script> | 62 <script> |
63 approxShapeTest('test', 'line-', 2, [200, 214, 216, 214, 200, 158, 0]); | 63 approxShapeTest('test', 'line-', 2, [200, 214, 216, 214, 200, 158, 0]); |
64 </script> | 64 </script> |
65 </body> | 65 </body> |
66 </html> | 66 </html> |
OLD | NEW |