Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <style> | |
| 5 #subPixelContainer { | |
| 6 left: 10.5px; | |
| 7 width: 100px; | |
| 8 height: 100px; | |
| 9 position: relative; | |
| 10 -webkit-transform: translateZ(0); | |
| 11 } | |
| 12 #subPixelContainer > div { | |
| 13 position: absolute; | |
| 14 width: 50.5px; | |
| 15 right: 0px; | |
| 16 height: 50px; | |
| 17 } | |
| 18 #test { | |
| 19 -webkit-transform: translateZ(0); | |
| 20 background-color: green; | |
| 21 } | |
| 22 #ref { | |
| 23 background-color: red; | |
| 24 } | |
| 25 </style> | |
| 26 </head> | |
| 27 <body> | |
| 28 <div>This tests that sub-pixel offsets in nested composited layers are properly accumulated. You should see no red.</div> | |
| 29 <div id="subPixelContainer"> | |
| 30 <div id="ref"></div> | |
| 31 <div id="test"></div> | |
| 32 </div> | |
| OLD | NEW |