blob: 4ebd261c8aa5ab506272c70093047e8aef05e737 [file] [log] [blame]
<!DOCTYPE html>
<html>
<link href="resources/flexbox.css" rel="stylesheet">
<style>
.container::first-letter { line-height: 100px; }
.flexboxFirstLetter::first-letter { line-height: 200px; }
p { line-height: 20px; }
</style>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../../resources/check-layout-th.js"></script>
<body onload="checkLayout('.container')">
<div id=log></div>
<p>This test flex item should ignore container's firstLetter pseudo element.</p>
<div class="container">
<div class="flexbox flexboxFirstLetter">
<p data-expected-height=20>The first item.</p>
<p data-expected-height=20>The second item.</p>
</div>
<p data-expected-height=100>Out of flex.</p>
</div>
<div class="container">
<div class="flexbox">
<p data-expected-height=20>The first item.</p>
<p data-expected-height=20>The second item.</p>
</div>
<p data-expected-height=100>Out of flex.</p>
</div>
</body>
</html>