From 9f67b297d5436d3a1f597eb561c09d7db2d0a01a Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 25 Jan 2025 19:52:18 +0100 Subject: layout: do not generate anonymous inline boxes Anonymous inline boxes were blocking progress on layout caching, so they are now gone. Instead, we handle them in layoutInline (which meanwhile has spaghettified to beyond comprehension... now it's a special case of inner BlockBox (kind of?) - incredibly, it still passes tests :P) This seems to match what major browsers do as well; some test cases were updated to reflect the "improved" rendering this brings. Next I'd like to remove anonymous table boxes by generating them in cascade. Then it should be straightforward enough to at least reuse flow roots on relayout. (And clean up flow layout...) --- test/layout/flex-anonymous-item-from-text.html | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 test/layout/flex-anonymous-item-from-text.html (limited to 'test/layout/flex-anonymous-item-from-text.html') diff --git a/test/layout/flex-anonymous-item-from-text.html b/test/layout/flex-anonymous-item-from-text.html new file mode 100644 index 00000000..adbf3abc --- /dev/null +++ b/test/layout/flex-anonymous-item-from-text.html @@ -0,0 +1,2 @@ + +
[
test
]
-- cgit