Chromium Code Reviews| Index: LayoutTests/fast/repaint/align-content-change.html |
| diff --git a/LayoutTests/fast/repaint/align-content-change.html b/LayoutTests/fast/repaint/align-content-change.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f8e9767d494b70dde3efa54f88b63d47fb3919cb |
| --- /dev/null |
| +++ b/LayoutTests/fast/repaint/align-content-change.html |
| @@ -0,0 +1,35 @@ |
| +<!DOCTYPE HTML> |
| +<script src="resources/text-based-repaint.js"></script> |
| +<script> |
| +function repaintTest() { |
| + document.getElementById('container').style.alignContent = 'stretch'; |
| +} |
| +onload = runRepaintTest; |
| +</script> |
| +<style> |
| +body { |
| + margin: 0; |
| +} |
| +#container { |
| + display: flex; |
| + align-content: space-around; |
| + flex-flow: row wrap; |
| + width: 200px; |
| + height: 300px; |
| + background-color: red; |
| +} |
| +.item { |
| + background-color: green; |
| + border: solid thin blue; |
| + width: 200px; |
| +} |
| +</style> |
| +<p style="height: 20px">Tests repaint on align-content style change. Passes if there is no red.</p> |
|
dsinclair
2014/09/03 20:48:12
Can this be a ref test instead of a -expected.txt?
dsinclair
2014/09/03 20:48:12
s/repaint/invalidation
Xianzhu
2014/09/03 21:29:20
Done.
Xianzhu
2014/09/03 21:29:20
I think ref test can't replace a repaint(invalidat
dsinclair
2014/09/04 14:10:45
Ah, k, I thought you were just testing correctness
|
| +<div id="container"> |
| + <div class="item"> |
| + <div style="height: 50px"></div> |
| + </div> |
| + <div class="item"> |
| + <div style="height: 50px"></div> |
| + </div> |
| +</div> |