https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 962d90000cca374f4756bc65ea024e06c0150499 authored by Philip Jägenstedt on 22 December 2018, 11:59:40 UTC
DO NOT MERGE: probe for idlharness.js flakiness
Tip revision: 962d900
at-supports-rule.https.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>
back to top