mirror of
https://github.com/servo/servo.git
synced 2025-08-28 08:38:20 +01:00
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:
parent
6d6726178a
commit
b4db9aeaeb
6 changed files with 86 additions and 19 deletions
19
tests/ref/after_block_iteration.html
Normal file
19
tests/ref/after_block_iteration.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue