OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <title>CSS Snap Size: snap-height center</title> | |
3 <link rel="author" title="Koji Ishii" href="kojiishi@gmail.com"> | |
4 <style> | |
5 div { | |
6 font-family: Ahem; | |
7 font-size: 40px; | |
8 } | |
9 .test, .ref { | |
10 display: inline-block; | |
11 vertical-align: top; | |
12 width: 5em; | |
13 } | |
14 .test { | |
15 line-height: 40px; | |
16 snap-height: 60px; | |
17 } | |
18 .ref { | |
19 line-height: 60px; | |
20 } | |
21 </style> | |
22 <p class="instructions" style="display:none">Test passes if left and right are t he same. | |
23 <div class="ref"> | |
24 <div>XXXXX</div> | |
25 <div>XXXXX XXXXX XXXXX</div> | |
26 <div><br>X<br>X</div> | |
27 </div> | |
28 <div class="ref"> | |
29 <div>XXXXX</div> | |
30 <div>XXXXX XXXXX XXXXX</div> | |
31 <div><br>X<br>X</div> | |
32 </div> | |
OLD | NEW |