Skip to content

Commit 72b780f

Browse files
mrobinsonLoirooriol
authored andcommitted
layout: Ensure that FragmentFlags reflect current starting BoxTree layout from IFC
This change ensures that when starting a `BoxTree` incremental layout from an `IndependentFormattingContext` that the `FragmentFlags` of the newly generated box reflect the current style, rather than wrongly preserving them between incremental layouts. This fixes an issue where restyling an `<li>` element with replaced content to one that was not replaced content did not remove the `IS_REPLACED` flag. Signed-off-by: Martin Robinson <martin@abandonedwig.info> Co-authored-by: Oriol Brufau <obrufau@igalia.com>
1 parent b6ca80c commit 72b780f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!DOCTYPE html>
2+
<link rel="help" href="https://github.com/servo/servo/issues/45740">
3+
<style>
4+
#bar { content: url(doesnotexist); }
5+
</style>
6+
<body onload='bar.id = "baz"'>
7+
<li id="bar" style="overflow: scroll"></li>
8+
</body>

0 commit comments

Comments
 (0)