OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <style> | |
3 .composited { | |
4 /* Force compositing without creating a stacking context */ | |
5 backface-visibility: hidden; | |
6 } | |
7 | |
8 .spacer { | |
9 height: 2000px; | |
10 } | |
11 | |
12 .container { | |
13 width: 500px; | |
14 height: 500px; | |
15 overflow: scroll; | |
16 } | |
17 </style> | |
18 | |
19 <div class="composited"> | |
20 Ref text. | |
21 <div class="container"> | |
22 <div> | |
23 This line should line up with the text above. | |
24 </div> | |
25 <div class="spacer"></div> | |
26 </div> | |
27 </div> | |
OLD | NEW |