Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/repaint/border-box-sizing-invalidation.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/repaint/border-box-sizing-invalidation.html b/third_party/WebKit/LayoutTests/fast/repaint/border-box-sizing-invalidation.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5e64f4c85d65bcb41c37addcd86d38933f8f5422 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/repaint/border-box-sizing-invalidation.html |
| @@ -0,0 +1,21 @@ |
| +<!DOCTYPE html> |
| +<style> |
| +img { |
| + box-sizing: border-box; |
| + transition: padding; |
|
Xianzhu
2016/04/04 03:55:45
Is this needed?
|
| + width: 100px; |
| +} |
| +#tst { |
| + padding: 30px; |
| +} |
| +</style> |
| +<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
|
| +<img id="tst" src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><rect width="1" height="1" fill="blue"/></svg>'> |
| +<script src="../../resources/run-after-layout-and-paint.js"></script> |
| +<script> |
| +runAfterLayoutAndPaint(function() { |
| + 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
|
| + document.getElementById('tst').style.padding = "0"; |
| + }, true); |
| +</script> |
| + |