| 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-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 width: 20em; | |
| 15 } | |
| 16 .test { | |
| 17 width: 20.5em; | |
| 18 text-align: right; | |
| 19 snap-width: 1em; | |
| 20 } | |
| 21 </style> | |
| 22 <body> | |
| 23 <p class="instructions" style="display:none">Test passes if the top and the bott
om boxes are the same, | |
| 24 including how they look and their horizontal positions. | |
| 25 <div class="test">XXXXXXXXXX XXXXXXXXX</div> | |
| 26 <div class="ref">XXXXXXXXXX XXXXXXXXX</div> | |
| 27 </body> | |
| OLD | NEW |