1
0
Fork 0
firefox/testing/web-platform/tests/css/css-layout-api/at-supports-rule.https.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

23 lines
626 B
HTML

<!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>