forked from mirrors/gecko-dev
Automatic update from web-platform-tests [CSS] Apply first line style even if there are out-of-flow blocks This patch means the code change to apply first line style on the first innermost in-flow block even if there are out-of-flow blocks. Following the spec (https://drafts.csswg.org/css-pseudo-4/#first-line-pseudo), The first formatted line of an element must occur inside a block-level descendant in the same flow (that is not out-of-flow due to floating or positioning). So, we should skip out-of-flow children in LayoutBlock::EnclosingFirstLineStyleBlock(). Bug: 979253 Change-Id: I58836b223b58816f731096a7a9f93e612278d42f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2485667 Commit-Queue: Jaeyong Bae <jdragon.bae@gmail.com> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Reviewed-by: Koji Ishii <kojii@chromium.org> Cr-Commit-Position: refs/heads/master@{#820337} -- wpt-commits: 75326ab67bc7c2915fb50c3ecd5c09d57f494d37 wpt-pr: 26205
21 lines
746 B
HTML
21 lines
746 B
HTML
<!DOCTYPE html>
|
|
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#first-line-pseudo">
|
|
<link rel="match" href="first-line-with-out-of-flow-ref.html">
|
|
<title>CSS Test: ::first-line with out of flow and nested span</title>
|
|
<style>
|
|
#block::first-line { color: green; }
|
|
</style>
|
|
<div id="block">
|
|
<div style="position: absolute"><br></div>
|
|
<div style="float: right"><br></div>
|
|
<div>
|
|
<div style="position: absolute"><br></div>
|
|
<div style="float: right"><br></div>
|
|
<div style="color: blue">
|
|
<div>
|
|
<span style="position: absolute"></span><span>This text </span><span style="position: absolute"></span><span>should be green.</span><br>
|
|
This text should be blue.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|