Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/paint/invalidation/iframe-display-block-to-display-none.html |
| diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/iframe-display-block-to-display-none.html b/third_party/WebKit/LayoutTests/paint/invalidation/iframe-display-block-to-display-none.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b4feaf52215d23bda24fa450e4c8d3e333081b4f |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/iframe-display-block-to-display-none.html |
| @@ -0,0 +1,19 @@ |
| +<!DOCTYPE html> |
| +<html> |
|
esprehn
2016/12/16 21:29:44
I'd leave out html and body, the test doesn't need
erikchen
2016/12/16 22:42:10
Done.
|
| +<script src="resources/text-based-repaint.js" type="text/javascript"></script> |
|
esprehn
2016/12/16 21:29:44
no type attr
erikchen
2016/12/16 22:42:10
Done.
|
| +<script> |
| +function repaintTest() |
| +{ |
| + iframe.style.display = "none"; |
|
esprehn
2016/12/16 21:29:44
document.getElementById("iframe") avoids the magic
erikchen
2016/12/16 22:42:10
Done.
|
| +} |
| +window.addEventListener("load", runRepaintAndPixelTest, false); |
|
esprehn
2016/12/16 21:29:44
no false
erikchen
2016/12/16 22:42:10
Done.
|
| +</script> |
| +<body> |
| + <p><a href="https://code.google.com/p/chromium/issues/detail?id=650433">issue 650433</a>: |
| + display:none iframes do not have layout objects<br> |
| + The test checks that changing the style of an iframe from block to none |
| + creates the right sequence of paint invalidations. |
| + </p> |
| + <iframe id="iframe" width="728" height="90" style="display: block"></iframe> |
| +</body> |
| +</html> |