| <!DOCTYPE html><!-- webkit-test-runner [ UseSystemAppearance=true ] --> |
| <html> |
| <head> |
| <title>This tests that light and dark materials look different.</title> |
| <style> |
| |
| body { |
| background: linear-gradient(red, blue) fixed; |
| } |
| |
| .container { |
| width: 300px; |
| height: 300px; |
| } |
| |
| .inner { |
| -apple-visual-effect: -apple-system-blur-material; |
| width: 200px; |
| height: 200px; |
| } |
| |
| </style> |
| <script> |
| |
| if (window.testRunner) |
| testRunner.waitUntilDone(); |
| |
| function load() { |
| if (window.internals) { |
| internals.settings.setUseDarkAppearance(true); |
| testRunner.notifyDone(); |
| } |
| } |
| window.addEventListener('load', load, false); |
| |
| </script> |
| </head> |
| <body> |
| <div class=container>foo<div class=inner>bar</div></div> |
| <pre id=result></pre> |
| </body> |
| </html> |