| <!DOCTYPE html> |
| <meta charset="utf-8"> |
| <title>backdrop-filter: Clipping should work when browser zoom is not 100%</title> |
| <div class="box"></div> |
| <div class="navbar"> |
| <div class="menu"></div> |
| <div class="menu2"></div> |
| </div> |
| |
| <!-- See [1] for an implementation of this test in WPT format. It requires the |
| WPT Fuzzy Matching [2] feature to be implemented, due to AA on the border |
| radii. |
| |
| [1] https://chromium-review.googlesource.com/c/chromium/src/+/1542677/4 |
| [2] https://github.com/web-platform-tests/wpt/blob/1f570a686843ca10f151a79956ee16110f4a4d42/docs/_writing-tests/reftests.md#fuzzy-matching |
| --> |
| <style> |
| div { |
| position: absolute; |
| } |
| .box { |
| width: 200px; |
| height: 200px; |
| top: 100px; |
| left: 100px; |
| background: green; |
| } |
| .navbar { |
| width: 300px; |
| height: 50px; |
| top: 150px; |
| left: 50px; |
| border: 2px solid blue; |
| backdrop-filter: invert(1); |
| border-radius: 10px 20px 30px 40px; |
| } |
| .menu { |
| width: 100px; |
| height: 150px; |
| top: 50px; |
| left: 95px; |
| border: 2px solid red; |
| } |
| .menu2 { |
| width: 100px; |
| height: 30px; |
| top: -34px; |
| left: 95px; |
| border: 2px solid red; |
| } |
| </style> |
| <script> |
| internals.setZoomFactor(1.5); |
| </script> |
| </html> |