about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-02-12 21:15:38 +0100
committerbptato <nincsnevem662@gmail.com>2025-02-12 23:27:34 +0100
commit8f3c96035f22a16459ad7c8996c280a015f0d2f5 (patch)
tree183424ee7b20eb53b313d0ff76885e7e3acdc0d5 /test
parent76e2b68af52bf51854388890172bc0b2f2aaf36b (diff)
downloadchawan-8f3c96035f22a16459ad7c8996c280a015f0d2f5.tar.gz
layout: separate out tree construction logic
For now, the skeleton remains in layout.  Eventually it should be
lazily constructed during the actual layout pass (thereby making layout
"single-pass" (sometimes :p))

The end goal is to do it all in styledNode.children, so that caching can
be as simple as "next box = find next matching cached box ?? make new".

This does mean that the internal structure of cached boxes will always
have to be reconstructed, but I don't see a better way.  (I suppose it
still remains possible to optimize out the unnecessary layout pass when
only a repaint is needed (e.g. color change) by modifying computed
values in-place.)
Diffstat (limited to 'test')
-rw-r--r--test/layout/pseudo-element-display-table-empty-content.expected1
-rw-r--r--test/layout/pseudo-element-display-table-empty-content.html3
2 files changed, 4 insertions, 0 deletions
diff --git a/test/layout/pseudo-element-display-table-empty-content.expected b/test/layout/pseudo-element-display-table-empty-content.expected
new file mode 100644
index 00000000..8b137891
--- /dev/null
+++ b/test/layout/pseudo-element-display-table-empty-content.expected
@@ -0,0 +1 @@
+
diff --git a/test/layout/pseudo-element-display-table-empty-content.html b/test/layout/pseudo-element-display-table-empty-content.html
new file mode 100644
index 00000000..0d217c36
--- /dev/null
+++ b/test/layout/pseudo-element-display-table-empty-content.html
@@ -0,0 +1,3 @@
+<!DOCTYPE html>
+<style>div::before { content: ""; display: table }</style>
+<div></div>