| <!DOCTYPE html> |
| <html> |
| <head> |
| <title>This tests that backdrop filter is clipped properly.</title> |
| <style> |
| .container { |
| background-color: red; |
| color: black; |
| width: 200px; |
| height: 200px; |
| } |
| .inner { |
| -webkit-backdrop-filter: invert(1); |
| clip: rect(5px, 115px, 115px, 5px); |
| border: 10px solid green; |
| width: 100px; |
| height: 100px; |
| } |
| </style> |
| <script> |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| |
| function dumpLayers() { |
| if (window.internals) |
| document.getElementById('result').innerText = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_CONTENT_LAYERS) |
| } |
| window.addEventListener('load', dumpLayers, false); |
| </script> |
| </head> |
| <body> |
| <div class=container>foo<div class=inner>bar</div></div> |
| <pre id=result></pre> |
| </body> |
| </html> |