about summary refs log tree commit diff stats
path: root/test/layout
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-11-02 17:05:13 +0100
committerbptato <nincsnevem662@gmail.com>2024-11-02 17:07:08 +0100
commit32391be24d45184b3bba3df6989037cab36f9269 (patch)
treea78e450fd3ff270d41ac5d71ae5f451ee3598dcf /test/layout
parentbdb953704fa8ad56babf1e6935281aa7c18f5cd3 (diff)
downloadchawan-32391be24d45184b3bba3df6989037cab36f9269.tar.gz
layout: remove inline rounding
It broke styles like "margin-top: -5px; padding-top: 5px", because the
margin would be taken as-is, and the padding rounded to 0. Now they
cancel each other out again.

(I think I had added this to reduce error caused by line-height, but we
don't have line-height anymore.)
Diffstat (limited to 'test/layout')
-rw-r--r--test/layout/fractional-margin-cancels-fractional-padding.expected1
-rw-r--r--test/layout/fractional-margin-cancels-fractional-padding.html2
2 files changed, 3 insertions, 0 deletions
diff --git a/test/layout/fractional-margin-cancels-fractional-padding.expected b/test/layout/fractional-margin-cancels-fractional-padding.expected
new file mode 100644
index 00000000..9daeafb9
--- /dev/null
+++ b/test/layout/fractional-margin-cancels-fractional-padding.expected
@@ -0,0 +1 @@
+test
diff --git a/test/layout/fractional-margin-cancels-fractional-padding.html b/test/layout/fractional-margin-cancels-fractional-padding.html
new file mode 100644
index 00000000..2988e412
--- /dev/null
+++ b/test/layout/fractional-margin-cancels-fractional-padding.html
@@ -0,0 +1,2 @@
+<div style="padding-top: .5em; margin-top: -.5em">
+test