Chromium Code Reviews| Index: LayoutTests/compositing/contents-opaque/visibility-hidden.html |
| diff --git a/LayoutTests/compositing/contents-opaque/visibility-hidden.html b/LayoutTests/compositing/contents-opaque/visibility-hidden.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..95e490386d16d774a710041dbf4d9523730f8a76 |
| --- /dev/null |
| +++ b/LayoutTests/compositing/contents-opaque/visibility-hidden.html |
| @@ -0,0 +1,49 @@ |
| +<html> |
|
jamesr
2013/05/31 01:17:17
add <!DOCTYPE html> (unless this is a quirks mode
alokp
2013/05/31 16:14:47
Done.
|
| + <head> |
| + <style type="text/css"> |
| + header { |
| + position: absolute; |
| + top: 20px; |
| + width: 200px; |
| + height: 50px; |
| + background-color: silver; |
| + -webkit-transform: translateZ(0); |
| + } |
| + header.hidden { |
| + visibility: hidden; |
| + } |
| + nav { |
| + height: 37px; |
| + overflow: hidden; |
| + } |
| + nav ul li { |
| + height: 50px; |
| + float: left; |
| + overflow: hidden; |
| + } |
| + </style> |
| + <script type="text/javascript"> |
| + if (window.testRunner) |
| + testRunner.dumpAsText(); |
| + |
| + function doTest() { |
| + var header = document.getElementsByTagName('header')[0]; |
| + header.classList.toggle('hidden'); |
| + if (window.testRunner && window.internals) |
| + document.getElementById('layertree').innerText = window.internals.layerTreeAsText(document); |
| + } |
| + window.addEventListener('load', doTest, false); |
| + </script> |
| + </head> |
| + |
| +<body> |
| + <header> |
| + <nav> |
| + <ul> |
| + <li>Some text here</li> |
| + </ul> |
| + </nav> |
| + </header> |
| + <pre id="layertree"></pre> |
| +</body> |
| +</html> |