Handle generated content with display: block correctly during flow

construction.

The iteration was incorrect here. Although it accidentally worked
before, it will cause problems when we have incremental style
recalculation.

The `after_block_iteration` reftest will become interesting once we have
incremental style recalc.
This commit is contained in:
Patrick Walton 2014-09-17 18:03:24 -07:00
parent 6d6726178a
commit b4db9aeaeb
6 changed files with 86 additions and 19 deletions

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<!--
Although this test may seem (and is) trivial, it ensures that iteration with generated content
with `display: block` is correct during flow construction. Before this commit, this could hang
when combined with incremental reflow, since the parallel traversal counters would become
corrupted.
-->
<title>ack</title>
<style>
div.after-portlet-lang:after {
display: block;
}
</style>
<body>
<div class='after-portlet-lang'><div>x</div></div>
</body>
</html>