aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-02-04 21:38:36 +0100
committerbptato <nincsnevem662@gmail.com>2025-02-04 21:38:36 +0100
commite993238fd664094b75ce848938745d85fa89c1c7 (patch)
tree6057ad8f7d155e7371d17c46a216c9fdfe623d05 /test
parent615989fc7273fb554bddfe7b34e95fcc9d5e9391 (diff)
downloadchawan-e993238fd664094b75ce848938745d85fa89c1c7.tar.gz
layout: merge addOuterBlock with layoutBlock, refactor
Having to initLine after every block hurts... I've added a mechanism to at least eliminate cleared floats, but I wish we just didn't init the line :/ (I tried making it lazy, but I couldn't get it to work elegantly.) I've also added some comments about flow, and moved around code so that related layouts are mostly in the same place.
Diffstat (limited to 'test')
-rw-r--r--test/layout/float-resolve-parent.html12
-rw-r--r--test/layout/margins-float.html1
-rw-r--r--test/layout/position-relative-percentage-on-table-with-excluded-space.expected1
-rw-r--r--test/layout/position-relative-percentage-on-table-with-excluded-space.html5
4 files changed, 6 insertions, 13 deletions
diff --git a/test/layout/float-resolve-parent.html b/test/layout/float-resolve-parent.html
index 4ff9a931..5667a4ed 100644
--- a/test/layout/float-resolve-parent.html
+++ b/test/layout/float-resolve-parent.html
@@ -7,18 +7,6 @@
font-size: 15px
}
</style>
-<script>
-window.onload = function() {
-document.getElementById("test").innerHTML = "test"
-console.log(document.querySelector("html").outerHTML);
-}
-/*
-(function(view) {
- "use strict";
- view.Intl = view.webkitURL || view.Intl;
-}(window))
-*/
-</script>
<div style="display: flow-root">
<div>
<div style="float: left; width: 100%; height: 10em; background-color: red"></div>
diff --git a/test/layout/margins-float.html b/test/layout/margins-float.html
index 1ac7bc94..2102e06d 100644
--- a/test/layout/margins-float.html
+++ b/test/layout/margins-float.html
@@ -14,7 +14,6 @@
<div style="float: left">
<div style="display: inline-block">hi from left</div>
</div>
-<!--<div style="margin-top: 5em">ok</div>-->
</div>
<div>
hi in center
diff --git a/test/layout/position-relative-percentage-on-table-with-excluded-space.expected b/test/layout/position-relative-percentage-on-table-with-excluded-space.expected
new file mode 100644
index 00000000..3d5f7bf2
--- /dev/null
+++ b/test/layout/position-relative-percentage-on-table-with-excluded-space.expected
@@ -0,0 +1 @@
+ float table
diff --git a/test/layout/position-relative-percentage-on-table-with-excluded-space.html b/test/layout/position-relative-percentage-on-table-with-excluded-space.html
new file mode 100644
index 00000000..01715237
--- /dev/null
+++ b/test/layout/position-relative-percentage-on-table-with-excluded-space.html
@@ -0,0 +1,5 @@
+<div style="width: 20ch">
+<div style="float: right; width: 5ch">
+float
+</div>
+<table style="position: relative; left: 100%"><tr><td>table</table>