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-padding-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 font-family: Ahem; | |
11 font-size: 32px; | |
12 line-height: 1; | |
13 margin: .5em 0; | |
14 padding: .4em; | |
15 width: 20em; | |
16 } | |
17 .test { | |
18 width: 20.5em; | |
19 text-align: right; | |
20 snap-width: 1em; | |
21 } | |
22 </style> | |
23 <body> | |
24 <p class="instructions" style="display:none">Test passes if the top and the bott
om boxes are the same, | |
25 including how they look and their horizontal positions. | |
26 <div class="test">XXXXXXXXXX XXXXXXXXX</div> | |
27 <div class="ref">XXXXXXXXXX XXXXXXXXX</div> | |
28 </body> | |
OLD | NEW |