Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /css/css-flexbox/getcomputedstyle/first-line-computed-style.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta name="assert" content="::first-line style cannot be applied to a flexbox since it does not contribute a first formatted line. Checks via getComputedStyle">
<style>
div { display: flex; }
div::first-line { vertical-align: top; }
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div>Triceratops</div>
<script>
test(function() {
let verticalAlign = getComputedStyle(document.querySelector('div'), '::first-line').verticalAlign;
assert_not_equals(verticalAlign, "top");
});
</script>