From 1e9e2ecd33caa6fb9b84ddbd014f239128f8e4d5 Mon Sep 17 00:00:00 2001 From: bptato Date: Mon, 3 Feb 2025 20:27:54 +0100 Subject: layout: inline background fixes & simplification Eliminates two superfluous line box alignment passes, and fixes some vertical-align bugs. --- test/layout/colored-inline-block-squares.color.expected | 3 +++ .../vertical-align-margin-and-baseline.color.expected | 11 +++++++++++ test/layout/vertical-align-margin-and-baseline.html | 15 +++++++++++++++ test/layout/vertical-align-middle-respects-size.expected | 4 ++++ test/layout/vertical-align-middle-respects-size.html | 4 ++++ ...ical-align-top-does-not-affect-baseline.color.expected | 8 ++++++++ .../vertical-align-top-does-not-affect-baseline.html | 7 +++++++ 7 files changed, 52 insertions(+) create mode 100644 test/layout/vertical-align-margin-and-baseline.color.expected create mode 100644 test/layout/vertical-align-margin-and-baseline.html create mode 100644 test/layout/vertical-align-middle-respects-size.expected create mode 100644 test/layout/vertical-align-middle-respects-size.html create mode 100644 test/layout/vertical-align-top-does-not-affect-baseline.color.expected create mode 100644 test/layout/vertical-align-top-does-not-affect-baseline.html (limited to 'test') diff --git a/test/layout/colored-inline-block-squares.color.expected b/test/layout/colored-inline-block-squares.color.expected index 36176633..5ad7866e 100644 --- a/test/layout/colored-inline-block-squares.color.expected +++ b/test/layout/colored-inline-block-squares.color.expected @@ -12,6 +12,9 @@ one ?  ?         + + + ?      diff --git a/test/layout/vertical-align-margin-and-baseline.color.expected b/test/layout/vertical-align-margin-and-baseline.color.expected new file mode 100644 index 00000000..471fe633 --- /dev/null +++ b/test/layout/vertical-align-margin-and-baseline.color.expected @@ -0,0 +1,11 @@ + + + + test +test +test +test + + + test test + test test diff --git a/test/layout/vertical-align-margin-and-baseline.html b/test/layout/vertical-align-margin-and-baseline.html new file mode 100644 index 00000000..7f4d58eb --- /dev/null +++ b/test/layout/vertical-align-margin-and-baseline.html @@ -0,0 +1,15 @@ + +
+test
+test
+test +
+
+test
+test +
+
+test
+test +
+test diff --git a/test/layout/vertical-align-middle-respects-size.expected b/test/layout/vertical-align-middle-respects-size.expected new file mode 100644 index 00000000..c45cca6f --- /dev/null +++ b/test/layout/vertical-align-middle-respects-size.expected @@ -0,0 +1,4 @@ +test + + +test diff --git a/test/layout/vertical-align-middle-respects-size.html b/test/layout/vertical-align-middle-respects-size.html new file mode 100644 index 00000000..d33bc99a --- /dev/null +++ b/test/layout/vertical-align-middle-respects-size.html @@ -0,0 +1,4 @@ + +
test
+
+test diff --git a/test/layout/vertical-align-top-does-not-affect-baseline.color.expected b/test/layout/vertical-align-top-does-not-affect-baseline.color.expected new file mode 100644 index 00000000..1c35f7da --- /dev/null +++ b/test/layout/vertical-align-top-does-not-affect-baseline.color.expected @@ -0,0 +1,8 @@ + test + + + + +test +test +test diff --git a/test/layout/vertical-align-top-does-not-affect-baseline.html b/test/layout/vertical-align-top-does-not-affect-baseline.html new file mode 100644 index 00000000..bd18c95b --- /dev/null +++ b/test/layout/vertical-align-top-does-not-affect-baseline.html @@ -0,0 +1,7 @@ + +
+test
+test
+test +
+test -- cgit