OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <title>CSS Snap Size: snap-width</title> | |
3 <link rel="author" title="Koji Ishii" href="kojiishi@gmail.com"> | |
4 <link rel="help" href="https://drafts.csswg.org/css-snap-size/#snap-width"> | |
5 <link rel="match" href="reference/snap-width-border-001.html"> | |
6 <meta name="assert" content="This test asserts the snap-width property rounds do
wn the box width."> | |
7 <meta name="flags" content="ahem"> | |
8 <style> | |
9 .test, .ref { | |
10 border: .4em blue solid; | |
11 font-family: Ahem; | |
12 font-size: 32px; | |
13 line-height: 1; | |
14 margin: .5em 0; | |
15 padding: .4em; | |
16 width: 20em; | |
17 } | |
18 .test { | |
19 width: 20.5em; | |
20 text-align: right; | |
21 snap-width: 1em; | |
22 } | |
23 </style> | |
24 <body> | |
25 <p class="instructions" style="display:none">Test passes if the top and the bott
om boxes are the same, | |
26 including how they look and their horizontal positions. | |
27 <div class="test">XXXXXXXXXX XXXXXXXXX</div> | |
28 <div class="ref">XXXXXXXXXX XXXXXXXXX</div> | |
29 </body> | |
OLD | NEW |