diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-layout-api/at-supports-rule.https.html')
-rw-r--r-- | testing/web-platform/tests/css/css-layout-api/at-supports-rule.https.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-layout-api/at-supports-rule.https.html b/testing/web-platform/tests/css/css-layout-api/at-supports-rule.https.html new file mode 100644 index 0000000000..0f23325ce6 --- /dev/null +++ b/testing/web-platform/tests/css/css-layout-api/at-supports-rule.https.html @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<link rel="help" href="https://drafts.css-houdini.org/css-layout-api/#valdef-display-layout"> +<meta name="assert" content="This test checks that a layout() function works correctly with an @supports rule." /> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<style> +#test { + content: 'fail'; +} + +@supports (display: layout(foo)) { + #test { + content: 'pass'; + } +} +</style> +<div id="test"></div> +<script> +test(function() { + const element = document.getElementById('test'); + assert_equals(getComputedStyle(element).content, '"pass"'); +}); +</script> |