summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-writing-modes/line-box-height-vlr-013.xht
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
commit0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch)
treea31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /testing/web-platform/tests/css/css-writing-modes/line-box-height-vlr-013.xht
parentInitial commit. (diff)
downloadfirefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz
firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-writing-modes/line-box-height-vlr-013.xht')
-rw-r--r--testing/web-platform/tests/css/css-writing-modes/line-box-height-vlr-013.xht58
1 files changed, 58 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-writing-modes/line-box-height-vlr-013.xht b/testing/web-platform/tests/css/css-writing-modes/line-box-height-vlr-013.xht
new file mode 100644
index 0000000000..c617555a53
--- /dev/null
+++ b/testing/web-platform/tests/css/css-writing-modes/line-box-height-vlr-013.xht
@@ -0,0 +1,58 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+ <head>
+
+ <title>CSS Writing Modes Test: line box height and padding on non-replaced inline box (upright)</title>
+
+ <!--
+ Test inspired by
+ https://searchfox.org/mozilla-central/source/layout/reftests/writing-mode/1130907-intrinsic-sizing-2.html
+ -->
+
+ <link rel="author" title="GĂ©rard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#line-height" title="10.8.1 Leading and half-leading" />
+ <link rel="match" href="line-box-height-vlr-011-ref.xht" />
+
+ <meta content="This test checks that a line box height does not increase because an inline non-replaced box has a padding. In this test, the '34' inline box and the '56' inline box should be lined up with its inline '12' sibling. The line box height, enclosed by the blue border should not grow to accommodate transparent 'padding-left' of inline box and transparent 'padding-right' of inline box." name="assert" />
+
+ <style type="text/css"><![CDATA[
+ body
+ {
+ margin-left: 32px;
+ }
+
+ div
+ {
+ border: blue solid 2px;
+ font-size: 32px;
+ margin: 1em;
+ writing-mode: vertical-lr;
+ text-orientation: upright;
+ }
+
+ span#padding-left
+ {
+ padding-left: 1.5em;
+ }
+
+ span#padding-right
+ {
+ padding-right: 1.5em;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if there are 2 identical blue rectangles with "123456" upright. The size of each blue rectangles must be identical and the two "123456" numbers must be enclosed by the two blue borders.</p>
+
+ <div id="test">12<span id="padding-left">34</span><span id="padding-right">56</span></div>
+
+ <div id="reference">123456</div>
+
+ </body>
+</html>