Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <style> | |
| 3 img { | |
| 4 box-sizing: border-box; | |
| 5 transition: padding; | |
|
Xianzhu
2016/04/04 03:55:45
Is this needed?
| |
| 6 width: 100px; | |
| 7 } | |
| 8 #tst { | |
| 9 padding: 30px; | |
| 10 } | |
| 11 </style> | |
| 12 <p>crbug.com/597194: There should be a blue box below.</p> | |
|
Xianzhu
2016/04/04 03:55:45
If the test fails, isn't there a blue box?
(In oth
| |
| 13 <img id="tst" src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" vi ewBox="0 0 1 1"><rect width="1" height="1" fill="blue"/></svg>'> | |
| 14 <script src="../../resources/run-after-layout-and-paint.js"></script> | |
| 15 <script> | |
| 16 runAfterLayoutAndPaint(function() { | |
| 17 document.body.offsetTop; | |
|
Xianzhu
2016/04/04 03:55:45
Nit: indent with 4 spaces.
Xianzhu
2016/04/04 03:55:45
Nit: No need to force layout here because this is
| |
| 18 document.getElementById('tst').style.padding = "0"; | |
| 19 }, true); | |
| 20 </script> | |
| 21 | |
| OLD | NEW |