fune/testing/web-platform/tests/css/css-layout-api/at-supports-rule.https.html
James Graham aaf51814c3 Bug 1435337 - Update web-platform-tests to revision 7174d3e89f3057aae399483194dc4b608ee8c933, a=testonly
MozReview-Commit-ID: CSM0hnryiTp


--HG--
rename : testing/web-platform/tests/content-security-policy/reporting/reporting-api-doesnt-send-reports-without-violation.https.sub.html => testing/web-platform/tests/content-security-policy/reporting-api/reporting-api-doesnt-send-reports-without-violation.https.sub.html
rename : testing/web-platform/tests/content-security-policy/reporting/reporting-api-report-only-sends-reports-on-violation.https.sub.html => testing/web-platform/tests/content-security-policy/reporting-api/reporting-api-report-only-sends-reports-on-violation.https.sub.html
rename : testing/web-platform/tests/content-security-policy/reporting/reporting-api-report-to-overrides-report-uri-1.https.sub.html => testing/web-platform/tests/content-security-policy/reporting-api/reporting-api-report-to-overrides-report-uri-1.https.sub.html
rename : testing/web-platform/tests/content-security-policy/reporting/reporting-api-report-to-overrides-report-uri-2.https.sub.html => testing/web-platform/tests/content-security-policy/reporting-api/reporting-api-report-to-overrides-report-uri-2.https.sub.html
rename : testing/web-platform/tests/content-security-policy/reporting/reporting-api-sends-reports-on-violation.https.sub.html => testing/web-platform/tests/content-security-policy/reporting-api/reporting-api-sends-reports-on-violation.https.sub.html
2018-02-02 19:09:23 +00: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>