OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 div { position: relative; } |
| 4 </style> |
| 5 PASS if there is no red visible. |
| 6 <!-- This div should be snapped up to (1,1) --> |
| 7 <div style="width: 70px; height: 70px; left: 0.7px; top: 0.7px;"> |
| 8 <div style="background: red; width: 40px; height: 40px; transform: translate
Z(0);"> |
| 9 <!-- Because the first div is snapped up to (1,1), this div will start w
ith a --> |
| 10 <!-- paint offset of (-0.3,-0.3) which will be added to (0.7,0.7) to get
--> |
| 11 <!-- (0.4,0.4) which rounds down to (0,0) and obscures the red div. --> |
| 12 <div style="background: white; width: 40px; height: 40px; left: 0.7px; t
op: 0.7px;"></div> |
| 13 </div> |
| 14 </div> |
OLD | NEW |