summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/text/visualtests
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/svg/text/visualtests
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/svg/text/visualtests')
-rw-r--r--testing/web-platform/tests/svg/text/visualtests/text-inline-size-001-visual.svg85
-rw-r--r--testing/web-platform/tests/svg/text/visualtests/text-inline-size-002-visual.svg82
-rw-r--r--testing/web-platform/tests/svg/text/visualtests/text-inline-size-003-visual.svg82
-rw-r--r--testing/web-platform/tests/svg/text/visualtests/text-inline-size-005-visual.svg66
-rw-r--r--testing/web-platform/tests/svg/text/visualtests/text-inline-size-006-visual.svg66
-rw-r--r--testing/web-platform/tests/svg/text/visualtests/text-inline-size-007-visual.svg66
-rw-r--r--testing/web-platform/tests/svg/text/visualtests/text-inline-size-101-visual.svg82
-rw-r--r--testing/web-platform/tests/svg/text/visualtests/text-inline-size-201-visual.svg91
8 files changed, 620 insertions, 0 deletions
diff --git a/testing/web-platform/tests/svg/text/visualtests/text-inline-size-001-visual.svg b/testing/web-platform/tests/svg/text/visualtests/text-inline-size-001-visual.svg
new file mode 100644
index 0000000000..086bab33b0
--- /dev/null
+++ b/testing/web-platform/tests/svg/text/visualtests/text-inline-size-001-visual.svg
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg id="svg-root"
+ width="100%" height="100%" viewBox="0 0 480 360"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <g id="testmeta">
+ <title>Text: Inline Size — 001</title>
+ <html:link rel="author"
+ title="Tavmjong Bah"
+ href="mailto:tavmjong@free.fr"/>
+ <html:link rel="reviewer"
+ title="NAME_OF_REVIEWER"
+ href="mailto:EMAIL OR http://CONTACT_PAGE" />
+ <!-- YYYY-MM-DD -->
+ <html:link rel="help"
+ href="https://svgwg.org/svg2-draft/text.html#InlineSize"/>
+ <metadata class="flags">TOKENS</metadata>
+ <desc class="assert">TEST ASSERTION</desc>
+ </g>
+
+ <style id="test-font" type="text/css">
+ /* Standard Font (if needed). */
+ @font-face {
+ font-family: FreeSans;
+ src: url("fonts/FreeSans.woff") format("woff"),
+ local("FreeSans");
+ }
+ text { font-family: FreeSans, sans-serif }
+ </style>
+
+ <style id="test-style" type="text/css">
+ /* Style that is being tested (if needed). */
+ text { font-family: FreeSans, sans-serif }
+ </style>
+
+ <defs>
+ <path id="TestPath" d="m 80,100 0,40 m 320,-40 0,40"/>
+ </defs>
+
+ <text id="title" x="240" y="50" style="fill:black; font-size:24px; text-anchor:middle;">Text 'inline-size' — 001</text>
+ <a href="https://svgwg.org/svg2-draft/text.html#InlineSize">
+ <text id="source" x="240" y="70" style="fill:black; font-size:12px; text-anchor:middle;">https://svgwg.org/svg2-draft/text.html#InlineSize</text>
+ </a>
+
+ <g id="test-body-reference" style="font-size:16px;fill:red">
+ <g transform="translate(0,0)">
+ <use xlink:href="#TestPath" style="fill:none;stroke:lightblue"/>
+ <circle cx="80" cy="114.8" r="1,0" style="fill:lightblue"/>
+ <text>
+ <tspan x="80" y="114.8">Lorem ipsum dolor sit amet, consectetur</tspan>
+ <tspan x="80" y="134.8">adipisicing elit,</tspan>
+ </text>
+ </g>
+ <g transform="translate(0,60)">
+ <use xlink:href="#TestPath" style="fill:none;stroke:lightblue"/>
+ <circle cx="240" cy="114.8" r="1,0" style="fill:lightblue"/>
+ <text style="text-anchor:middle">
+ <tspan x="240" y="114.8">Lorem ipsum dolor sit amet, consectetur</tspan>
+ <tspan x="240" y="134.8">adipisicing elit,</tspan>
+ </text>
+ </g>
+ <g transform="translate(0,120)">
+ <use xlink:href="#TestPath" style="fill:none;stroke:lightblue"/>
+ <circle cx="400" cy="114.8" r="1,0" style="fill:lightblue"/>
+ <text style="text-anchor:end">
+ <tspan x="400" y="114.8">Lorem ipsum dolor sit amet, consectetur</tspan>
+ <tspan x="400" y="134.8">adipisicing elit,</tspan>
+ </text>
+ </g>
+ </g>
+
+ <g id="test-body-content" style="font-size:16px;line-spacing:1.25;fill:green">
+ <g transform="translate(0,0)">
+ <text x="80" y="114.8" style="inline-size:320px">Lorem ipsum dolor sit amet, consectetur adipisicing elit,</text>
+ </g>
+ <g transform="translate(0,60)">
+ <text x="240" y="114.8" style="inline-size:320px;text-anchor:middle">Lorem ipsum dolor sit amet, consectetur adipisicing elit,</text>
+ </g>
+ <g transform="translate(0,120)">
+ <text x="400" y="114.8" style="inline-size:320px;text-anchor:end">Lorem ipsum dolor sit amet, consectetur adipisicing elit,</text>
+ </g>
+ </g>
+
+</svg>
diff --git a/testing/web-platform/tests/svg/text/visualtests/text-inline-size-002-visual.svg b/testing/web-platform/tests/svg/text/visualtests/text-inline-size-002-visual.svg
new file mode 100644
index 0000000000..7f58973ce3
--- /dev/null
+++ b/testing/web-platform/tests/svg/text/visualtests/text-inline-size-002-visual.svg
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg id="svg-root"
+ width="100%" height="100%" viewBox="0 0 480 360"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <g id="testmeta">
+ <title>Text in Shape — 002</title>
+ <html:link rel="author"
+ title="Tavmjong Bah"
+ href="mailto:tavmjong@free.fr"/>
+ <html:link rel="reviewer"
+ title="NAME_OF_REVIEWER"
+ href="mailto:EMAIL OR http://CONTACT_PAGE" />
+ <!-- YYYY-MM-DD -->
+ <html:link rel="help"
+ href="https://svgwg.org/svg2-draft/text.html#InlineSize"/>
+ <metadata class="flags">TOKENS</metadata>
+ <desc class="assert">TEST ASSERTION</desc>
+ </g>
+
+ <style id="test-font" type="text/css">
+ /* Standard Font (if needed). */
+ @font-face {
+ font-family: FreeSans;
+ src: url("fonts/FreeSans.woff") format("woff"),
+ local("FreeSans");
+ }
+ text { font-family: FreeSans, sans-serif }
+ </style>
+
+ <style id="test-style" type="text/css">
+ /* Style that is being tested (if needed). */
+ text { font-family: FreeSans, sans-serif }
+ </style>
+
+ <defs>
+ <path id="TestPath" d="m 110,100 40,0 m -40,200 40,0"/>
+ </defs>
+
+ <text id="title" x="240" y="50" style="fill:black; font-size:24px; text-anchor:middle;">Text 'inline-size' — 002</text>
+ <a href="https://svgwg.org/svg2-draft/text.html#InlineSize">
+ <text id="source" x="240" y="70" style="fill:black; font-size:12px; text-anchor:middle;">https://svgwg.org/svg2-draft/text.html#InlineSize</text>
+ </a>
+
+ <g id="test-body-reference" style="font-size:16px;fill:red">
+ <g transform="translate(0,0)">
+ <text transform="translate(250,10) rotate(90)">
+ <tspan x="90" y="114.8">Lorem ipsum dolor sit amet,</tspan>
+ <tspan x="90" y="134.8">consectetur adipisicing elit,</tspan>
+ </text>
+ </g>
+ <g transform="translate(80,0)">
+ <text transform="translate(250,-40) rotate(90)" style="text-anchor:middle">
+ <tspan x="240" y="114.8">Lorem ipsum dolor sit amet,</tspan>
+ <tspan x="240" y="134.8">consectetur adipisicing elit,</tspan>
+ </text>
+ </g>
+ <g transform="translate(160,0)">
+ <text transform="translate(250,-90) rotate(90)" style="text-anchor:end">
+ <tspan x="390" y="114.8">Lorem ipsum dolor sit amet,</tspan>
+ <tspan x="390" y="134.8">consectetur adipisicing elit,</tspan>
+ </text>
+ </g>
+ </g>
+
+ <g id="test-body-content" style="font-size:16px;line-spacing:1.25;writing-mode:tb-rl;fill:green">
+ <g transform="translate(0,0)">
+ <use xlink:href="#TestPath" style="fill:none;stroke:lightblue"/>
+ <text x="140" y="100" style="inline-size:200px">Lorem ipsum dolor sit amet, consectetur adipisicing elit,</text>
+ </g>
+ <g transform="translate(80,0)">
+ <use xlink:href="#TestPath" style="fill:none;stroke:lightblue"/>
+ <text x="140" y="200" style="inline-size:200px;text-anchor:middle">Lorem ipsum dolor sit amet, consectetur adipisicing elit,</text>
+ </g>
+ <g transform="translate(160,0)">
+ <use xlink:href="#TestPath" style="fill:none;stroke:lightblue"/>
+ <text x="140" y="300" style="inline-size:200px;text-anchor:end">Lorem ipsum dolor sit amet, consectetur adipisicing elit,</text>
+ </g>
+ </g>
+
+</svg>
diff --git a/testing/web-platform/tests/svg/text/visualtests/text-inline-size-003-visual.svg b/testing/web-platform/tests/svg/text/visualtests/text-inline-size-003-visual.svg
new file mode 100644
index 0000000000..19bf0dc9d5
--- /dev/null
+++ b/testing/web-platform/tests/svg/text/visualtests/text-inline-size-003-visual.svg
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg id="svg-root"
+ width="100%" height="100%" viewBox="0 0 480 360"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <g id="testmeta">
+ <title>Text: Inline Size — 003</title>
+ <html:link rel="author"
+ title="Tavmjong Bah"
+ href="mailto:tavmjong@free.fr"/>
+ <html:link rel="reviewer"
+ title="NAME_OF_REVIEWER"
+ href="mailto:EMAIL OR http://CONTACT_PAGE" />
+ <!-- YYYY-MM-DD -->
+ <html:link rel="help"
+ href="https://svgwg.org/svg2-draft/text.html#InlineSize"/>
+ <metadata class="flags">TOKENS</metadata>
+ <desc class="assert">TEST ASSERTION</desc>
+ </g>
+
+ <style id="test-font" type="text/css">
+ /* Standard Font (if needed). */
+ @font-face {
+ font-family: FreeSans;
+ src: url("fonts/FreeSans.woff") format("woff"),
+ local("FreeSans");
+ }
+ text { font-family: FreeSans, sans-serif }
+ </style>
+
+ <style id="test-style" type="text/css">
+ /* Style that is being tested (if needed). */
+ text { font-family: FreeSans, sans-serif }
+ </style>
+
+ <defs>
+ <path id="TestPath" d="m 80,100 0,40 m 320,-40 0,40"/>
+ </defs>
+
+ <text id="title" x="240" y="50" style="fill:black; font-size:24px; text-anchor:middle;">Text 'inline-size' — 003</text>
+ <a href="https://svgwg.org/svg2-draft/text.html#InlineSize">
+ <text id="source" x="240" y="70" style="fill:black; font-size:12px; text-anchor:middle;">https://svgwg.org/svg2-draft/text.html#InlineSize</text>
+ </a>
+
+ <g id="test-body-reference" style="font-size:16px;direction:rtl;fill:red">
+ <g transform="translate(0,0)">
+ <text>
+ <tspan x="400" y="114.8">لكن لا بد أن أوضح لك أن كل هذه الأفكار</tspan>
+ <tspan x="400" y="134.8">المغلوطة حول استنكار</tspan>
+ </text>
+ </g>
+ <g transform="translate(0,60)">
+ <text style="text-anchor:middle">
+ <tspan x="240" y="114.8">لكن لا بد أن أوضح لك أن كل هذه الأفكار</tspan>
+ <tspan x="240" y="134.8">المغلوطة حول استنكار</tspan>
+ </text>
+ </g>
+ <g transform="translate(0,120)">
+ <text style="text-anchor:end">
+ <tspan x="80" y="114.8">لكن لا بد أن أوضح لك أن كل هذه الأفكار</tspan>
+ <tspan x="80" y="134.8">المغلوطة حول استنكار</tspan>
+ </text>
+ </g>
+ </g>
+
+ <g id="test-body-content" style="font-size:16px;line-spacing:1.25;direction:rtl;fill:green">
+ <g transform="translate(0,0)">
+ <use xlink:href="#TestPath" style="fill:none;stroke:lightblue"/>
+ <text x="400" y="114.8" style="inline-size:320px">لكن لا بد أن أوضح لك أن كل هذه الأفكار المغلوطة حول استنكار</text>
+ </g>
+ <g transform="translate(0,60)">
+ <use xlink:href="#TestPath" style="fill:none;stroke:lightblue"/>
+ <text x="240" y="114.8" style="inline-size:320px;text-anchor:middle">لكن لا بد أن أوضح لك أن كل هذه الأفكار المغلوطة حول استنكار</text>
+ </g>
+ <g transform="translate(0,120)">
+ <use xlink:href="#TestPath" style="fill:none;stroke:lightblue"/>
+ <text x="80" y="114.8" style="inline-size:320px;text-anchor:end">لكن لا بد أن أوضح لك أن كل هذه الأفكار المغلوطة حول استنكار</text>
+ </g>
+ </g>
+
+</svg>
diff --git a/testing/web-platform/tests/svg/text/visualtests/text-inline-size-005-visual.svg b/testing/web-platform/tests/svg/text/visualtests/text-inline-size-005-visual.svg
new file mode 100644
index 0000000000..dab467e122
--- /dev/null
+++ b/testing/web-platform/tests/svg/text/visualtests/text-inline-size-005-visual.svg
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg id="svg-root"
+ width="100%" height="100%" viewBox="0 0 480 360"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <g id="testmeta">
+ <title>Text: Inline Size — 005</title>
+ <html:link rel="author"
+ title="Tavmjong Bah"
+ href="mailto:tavmjong@free.fr"/>
+ <html:link rel="reviewer"
+ title="NAME_OF_REVIEWER"
+ href="mailto:EMAIL OR http://CONTACT_PAGE" />
+ <!-- YYYY-MM-DD -->
+ <html:link rel="help"
+ href="https://svgwg.org/svg2-draft/text.html#InlineSize"/>
+ <metadata class="flags">TOKENS</metadata>
+ <desc class="assert">TEST ASSERTION</desc>
+ </g>
+
+ <style id="test-font" type="text/css">
+ /* Standard Font (if needed). */
+ @font-face {
+ font-family: FreeSans;
+ src: url("fonts/FreeSans.woff") format("woff"),
+ local("FreeSans");
+ }
+ text { font-family: FreeSans, sans-serif }
+ </style>
+
+ <style id="test-style" type="text/css">
+ /* Style that is being tested (if needed). */
+ text { font-family: FreeSans, sans-serif }
+ </style>
+
+ <defs>
+ <path id="TestPath" d="m 80,100 0,160 m 320,-160 0,160"/>
+ </defs>
+
+ <text id="title" x="240" y="50" style="fill:black; font-size:24px; text-anchor:middle;">Text 'inline-size' — 005</text>
+ <a href="https://svgwg.org/svg2-draft/text.html#InlineSize">
+ <text id="source" x="240" y="70" style="fill:black; font-size:12px; text-anchor:middle;">https://svgwg.org/svg2-draft/text.html#InlineSize</text>
+ </a>
+
+ <g id="test-body-reference" style="font-size:16px;fill:#ffeeee">
+ <g transform="translate(0,0)">
+ <use xlink:href="#TestPath" style="fill:none;stroke:lightblue"/>
+ <text>
+ <tspan x="80" y="114.8">Lorem ipsum dolor sit amet, consectetur</tspan>
+ <tspan x="80" y="149.6">adipiscing <tspan style="font-size:32px">elit</tspan>, sed do eiusmod tempor</tspan>
+ <tspan x="80" y="174.8">incididunt ut labore et dolore magna aliqua. Ut</tspan>
+ <tspan x="80" y="209.6">enim ad minim veniam, <tspan style="font-size:32px">quis</tspan> nostrud</tspan>
+ <tspan x="80" y="234.8">exercitation ullamco laboris <tspan style="font-size:8px">nisi</tspan> ut aliquip ex ea</tspan>
+ <tspan x="80" y="254.8">commodo consequat.</tspan>
+ </text>
+ </g>
+ </g>
+
+ <g id="test-body-content" style="font-size:16px;line-height:1.25;fill:green">
+ <g transform="translate(0,0)">
+ <text x="80" y="114.8" style="inline-size:320px" xml:space="preserve">Lorem ipsum dolor sit amet, consectetur adipiscing <tspan style="font-size:32px">elit</tspan>, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, <tspan style="font-size:2em">quis</tspan> nostrud exercitation ullamco laboris <tspan style="font-size:8px">nisi</tspan> ut aliquip ex ea commodo consequat.</text>
+ </g>
+ </g>
+
+</svg>
diff --git a/testing/web-platform/tests/svg/text/visualtests/text-inline-size-006-visual.svg b/testing/web-platform/tests/svg/text/visualtests/text-inline-size-006-visual.svg
new file mode 100644
index 0000000000..427ff09501
--- /dev/null
+++ b/testing/web-platform/tests/svg/text/visualtests/text-inline-size-006-visual.svg
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg id="svg-root"
+ width="100%" height="100%" viewBox="0 0 480 360"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <g id="testmeta">
+ <title>Text: Inline Size — 006</title>
+ <html:link rel="author"
+ title="Tavmjong Bah"
+ href="mailto:tavmjong@free.fr"/>
+ <html:link rel="reviewer"
+ title="NAME_OF_REVIEWER"
+ href="mailto:EMAIL OR http://CONTACT_PAGE" />
+ <!-- YYYY-MM-DD -->
+ <html:link rel="help"
+ href="https://svgwg.org/svg2-draft/text.html#InlineSize"/>
+ <metadata class="flags">TOKENS</metadata>
+ <desc class="assert">TEST ASSERTION</desc>
+ </g>
+
+ <style id="test-font" type="text/css">
+ /* Standard Font (if needed). */
+ @font-face {
+ font-family: FreeSans;
+ src: url("fonts/FreeSans.woff") format("woff"),
+ local("FreeSans");
+ }
+ text { font-family: FreeSans, sans-serif }
+ </style>
+
+ <style id="test-style" type="text/css">
+ /* Style that is being tested (if needed). */
+ text { font-family: FreeSans, sans-serif }
+ </style>
+
+ <defs>
+ <path id="TestPath" d="m 80,100 0,160 m 320,-160 0,160"/>
+ </defs>
+
+ <text id="title" x="240" y="50" style="fill:black; font-size:24px; text-anchor:middle;">Text 'inline-size' — 006</text>
+ <a href="https://svgwg.org/svg2-draft/text.html#InlineSize">
+ <text id="source" x="240" y="70" style="fill:black; font-size:12px; text-anchor:middle;">https://svgwg.org/svg2-draft/text.html#InlineSize</text>
+ </a>
+
+ <g id="test-body-reference" style="font-size:16px;fill:red">
+ <g transform="translate(0,0)">
+ <use xlink:href="#TestPath" style="fill:none;stroke:lightblue"/>
+ <text>
+ <tspan x="80" y="114.8">Lorem ipsum dolor sit amet, consectetur</tspan>
+ <tspan x="80" y="134.8">adipiscing <tspan style="font-size:32px">elit</tspan>, sed do eiusmod tempor</tspan>
+ <tspan x="80" y="154.8">incididunt ut labore et dolore magna aliqua. Ut</tspan>
+ <tspan x="80" y="174.8">enim ad minim veniam, <tspan style="font-size:32px">quis</tspan> nostrud</tspan>
+ <tspan x="80" y="194.8">exercitation ullamco laboris <tspan style="font-size:8px">nisi</tspan> ut aliquip ex ea</tspan>
+ <tspan x="80" y="214.8">commodo consequat.</tspan>
+ </text>
+ </g>
+ </g>
+
+ <g id="test-body-content" style="font-size:16px;line-height:1.25;fill:green">
+ <g transform="translate(0,0)">
+ <text x="80" y="114.8" style="inline-size:320px">Lorem ipsum dolor sit amet, consectetur adipiscing <tspan style="font-size:32px;line-height:0">elit</tspan>, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, <tspan style="font-size:2em;line-height:0">quis</tspan> nostrud exercitation ullamco laboris <tspan style="font-size:8px">nisi</tspan> ut aliquip ex ea commodo consequat.</text>
+ </g>
+ </g>
+
+</svg>
diff --git a/testing/web-platform/tests/svg/text/visualtests/text-inline-size-007-visual.svg b/testing/web-platform/tests/svg/text/visualtests/text-inline-size-007-visual.svg
new file mode 100644
index 0000000000..8bb078f95b
--- /dev/null
+++ b/testing/web-platform/tests/svg/text/visualtests/text-inline-size-007-visual.svg
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg id="svg-root"
+ width="100%" height="100%" viewBox="0 0 480 360"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <g id="testmeta">
+ <title>Text: Inline Size — 006</title>
+ <html:link rel="author"
+ title="Tavmjong Bah"
+ href="mailto:tavmjong@free.fr"/>
+ <html:link rel="reviewer"
+ title="NAME_OF_REVIEWER"
+ href="mailto:EMAIL OR http://CONTACT_PAGE" />
+ <!-- YYYY-MM-DD -->
+ <html:link rel="help"
+ href="https://svgwg.org/svg2-draft/text.html#InlineSize"/>
+ <metadata class="flags">TOKENS</metadata>
+ <desc class="assert">TEST ASSERTION</desc>
+ </g>
+
+ <style id="test-font" type="text/css">
+ /* Standard Font (if needed). */
+ @font-face {
+ font-family: FreeSans;
+ src: url("fonts/FreeSans.woff") format("woff"),
+ local("FreeSans");
+ }
+ text { font-family: FreeSans, sans-serif }
+ </style>
+
+ <style id="test-style" type="text/css">
+ /* Style that is being tested (if needed). */
+ text { font-family: FreeSans, sans-serif }
+ </style>
+
+ <defs>
+ <path id="TestPath" d="m 80,100 0,160 m 320,-160 0,160"/>
+ </defs>
+
+ <text id="title" x="240" y="50" style="fill:black; font-size:24px; text-anchor:middle;">Text 'inline-size' — 007</text>
+ <a href="https://svgwg.org/svg2-draft/text.html#InlineSize">
+ <text id="source" x="240" y="70" style="fill:black; font-size:12px; text-anchor:middle;">https://svgwg.org/svg2-draft/text.html#InlineSize</text>
+ </a>
+
+ <g id="test-body-reference" style="font-size:16px;fill:red">
+ <g transform="translate(0,0)">
+ <use xlink:href="#TestPath" style="fill:none;stroke:lightblue"/>
+ <text>
+ <tspan x="80" y="114.8">Lorem ipsum dolor sit amet, consectetur</tspan>
+ <tspan x="80" y="139.6">adipiscing <tspan style="font-size:32px">elit</tspan>, sed do eiusmod tempor</tspan>
+ <tspan x="80" y="159.6">incididunt ut labore et dolore magna aliqua. Ut</tspan>
+ <tspan x="80" y="184.4">enim ad minim veniam, <tspan style="font-size:32px">quis</tspan> nostrud</tspan>
+ <tspan x="80" y="204.4">exercitation ullamco laboris <tspan style="font-size:8px">nisi</tspan> ut aliquip ex ea</tspan>
+ <tspan x="80" y="226.8">commodo consequat.</tspan>
+ </text>
+ </g>
+ </g>
+
+ <g id="test-body-content" style="font-size:16px;fill:green">
+ <g transform="translate(0,0)">
+ <text x="80" y="114.8" style="inline-size:320px;line-height:20px">Lorem ipsum dolor sit amet, consectetur adipiscing <tspan style="font-size:32px">elit</tspan>, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, <tspan style="font-size:2em">quis</tspan> nostrud exercitation ullamco laboris <tspan style="font-size:8px">nisi</tspan> ut aliquip ex ea commodo consequat.</text>
+ </g>
+ </g>
+
+</svg>
diff --git a/testing/web-platform/tests/svg/text/visualtests/text-inline-size-101-visual.svg b/testing/web-platform/tests/svg/text/visualtests/text-inline-size-101-visual.svg
new file mode 100644
index 0000000000..e1c5c41693
--- /dev/null
+++ b/testing/web-platform/tests/svg/text/visualtests/text-inline-size-101-visual.svg
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg id="svg-root"
+ width="100%" height="100%" viewBox="0 0 480 360"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <g id="testmeta">
+ <title>Text: Inline Size — 101</title>
+ <html:link rel="author"
+ title="Tavmjong Bah"
+ href="mailto:tavmjong@free.fr"/>
+ <html:link rel="reviewer"
+ title="NAME_OF_REVIEWER"
+ href="mailto:EMAIL OR http://CONTACT_PAGE" />
+ <!-- YYYY-MM-DD -->
+ <html:link rel="help"
+ href="https://svgwg.org/svg2-draft/text.html#InlineSize"/>
+ <metadata class="flags">TOKENS</metadata>
+ <desc class="assert">TEST ASSERTION</desc>
+ </g>
+
+ <style id="test-font" type="text/css">
+ /* Standard Font (if needed). */
+ @font-face {
+ font-family: FreeSans;
+ src: url("fonts/FreeSans.woff") format("woff"),
+ local("FreeSans");
+ }
+ text { font-family: FreeSans, sans-serif }
+ </style>
+
+ <style id="test-style" type="text/css">
+ /* Style that is being tested (if needed). */
+ text { font-family: FreeSans, sans-serif }
+ </style>
+
+ <defs>
+ <path id="TestPath" d="m 80,100 0,40 m 320,-40 0,40"/>
+ </defs>
+
+ <text id="title" x="240" y="50" style="fill:black; font-size:24px; text-anchor:middle;">Text 'inline-size' — 101</text>
+ <a href="https://svgwg.org/svg2-draft/text.html#InlineSize">
+ <text id="source" x="240" y="70" style="fill:black; font-size:12px; text-anchor:middle;">https://svgwg.org/svg2-draft/text.html#InlineSize</text>
+ </a>
+
+ <g id="test-body-reference" style="font-size:16px;fill:red">
+ <g transform="translate(0,0)">
+ <use xlink:href="#TestPath" style="fill:none;stroke:lightblue"/>
+ <text>
+ <tspan x="80" y="114.8">Lorem ipsum dolor sit amet, consectetur</tspan>
+ <tspan x="80" y="134.8">adipisicing elit,</tspan>
+ </text>
+ </g>
+ <g transform="translate(0,60)">
+ <use xlink:href="#TestPath" style="fill:none;stroke:lightblue"/>
+ <text style="text-anchor:middle">
+ <tspan x="240" y="114.8">Lorem ipsum dolor sit amet, consectetur</tspan>
+ <tspan x="240" y="134.8">adipisicing elit,</tspan>
+ </text>
+ </g>
+ <g transform="translate(0,120)">
+ <use xlink:href="#TestPath" style="fill:none;stroke:lightblue"/>
+ <text style="text-anchor:end">
+ <tspan x="400" y="114.8">Lorem ipsum dolor sit amet, consectetur</tspan>
+ <tspan x="400" y="134.8">adipisicing elit,</tspan>
+ </text>
+ </g>
+ </g>
+
+ <g id="test-body-content" style="font-size:16px;line-spacing:1.25;fill:green">
+ <g transform="translate(0,0)">
+ <text x="80" y="114.8" style="inline-size:66.66667%">Lorem ipsum dolor sit amet, consectetur adipisicing elit,</text>
+ </g>
+ <g transform="translate(0,60)">
+ <text x="240" y="114.8" style="inline-size:66.66667%;text-anchor:middle">Lorem ipsum dolor sit amet, consectetur adipisicing elit,</text>
+ </g>
+ <g transform="translate(0,120)">
+ <text x="400" y="114.8" style="inline-size:66.66667%;text-anchor:end">Lorem ipsum dolor sit amet, consectetur adipisicing elit,</text>
+ </g>
+ </g>
+
+</svg>
diff --git a/testing/web-platform/tests/svg/text/visualtests/text-inline-size-201-visual.svg b/testing/web-platform/tests/svg/text/visualtests/text-inline-size-201-visual.svg
new file mode 100644
index 0000000000..f2649eaad2
--- /dev/null
+++ b/testing/web-platform/tests/svg/text/visualtests/text-inline-size-201-visual.svg
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="utf-8"?>
+<svg id="svg-root"
+ width="100%" height="100%" viewBox="0 0 480 360"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+ <g id="testmeta">
+ <title>Text in Shape — 201</title>
+ <html:link rel="author"
+ title="Tavmjong Bah"
+ href="mailto:tavmjong@free.fr"/>
+ <html:link rel="reviewer"
+ title="NAME_OF_REVIEWER"
+ href="mailto:EMAIL OR http://CONTACT_PAGE" />
+ <!-- YYYY-MM-DD -->
+ <html:link rel="help"
+ href="https://svgwg.org/svg2-draft/text.html#InlineSize"/>
+ <metadata class="flags">TOKENS</metadata>
+ <desc class="assert">TEST ASSERTION</desc>
+ </g>
+
+ <style id="test-font" type="text/css">
+ /* Standard Font (if needed). */
+ @font-face {
+ font-family: FreeSans;
+ src: url("fonts/FreeSans.woff") format("woff"),
+ local("FreeSans");
+ }
+ text { font-family: FreeSans, sans-serif }
+ </style>
+
+ <style id="test-style" type="text/css">
+ /* Style that is being tested (if needed). */
+ text { font-family: FreeSans, sans-serif }
+ </style>
+
+ <defs>
+ <path id="TestPath" d="m 110,100 40,0 m -40,200 40,0"/>
+ </defs>
+
+ <text id="title" x="240" y="50" style="fill:black; font-size:24px; text-anchor:middle;">Text 'inline-size' — 201</text>
+ <a href="https://svgwg.org/svg2-draft/text.html#InlineSize">
+ <text id="source" x="240" y="70" style="fill:black; font-size:12px; text-anchor:middle;">https://svgwg.org/svg2-draft/text.html#InlineSize</text>
+ </a>
+
+ <g id="test-body-reference" style="font-size:16px;fill:red">
+ <g transform="translate(0,0)">
+ <use xlink:href="#TestPath" style="fill:none;stroke:lightblue"/>
+ <text style="writing-mode:tb-rl">
+ <tspan x="140" y="100">漢字</tspan>
+ <tspan x="140" y="132">Lorem ipsum</tspan>
+ <tspan x="140" y="227.7">漢字</tspan>
+ </text>
+ </g>
+ <g transform="translate(80,0)">
+ <use xlink:href="#TestPath" style="fill:none;stroke:lightblue"/>
+ <text transform="translate(250,-40) rotate(90)">
+ <tspan x="140" y="110">漢字Lorem ipsum!漢字</tspan>
+ </text>
+ </g>
+ <g transform="translate(160,0)">
+ <use xlink:href="#TestPath" style="fill:none;stroke:lightblue"/>
+ <text transform="translate(250,-40) rotate(90)">
+ <tspan x="140" y="110">漢字!لكن لا بد أن漢字</tspan>
+ </text>
+ </g>
+ <g transform="translate(240,0)">
+ <use xlink:href="#TestPath" style="fill:none;stroke:lightblue"/>
+ <text transform="translate(250,-40) rotate(90)" style="direction:rtl;text-anchor:end">
+ <tspan x="140" y="110">漢字!لكن لا بد أن漢字</tspan>
+ </text>
+ </g>
+ </g>
+
+ <!-- Lorem ipsum dolor sit amet, consectetur adipisicing elit, -->
+ <g id="test-body-content" style="font-size:16px;line-spacing:1.25;writing-mode:tb-rl;fill:green">
+ <g transform="translate(0,0)">
+ <text x="140" y="100" style="inline-size:200px">漢字Lorem ipsum!漢字</text>
+ </g>
+ <g transform="translate(80,0)" style="text-orientation:sideways">
+ <text x="140" y="100" style="inline-size:200px">漢字Lorem ipsum!漢字</text>
+ </g>
+ <g transform="translate(160,0)" style="text-orientation:sideways">
+ <text x="140" y="100" style="inline-size:200px">漢字!لكن لا بد أن漢字</text>
+ </g>
+ <g transform="translate(240,0)" style="direction:rtl;text-orientation:sideways">
+ <text x="140" y="100" style="inline-size:200px">漢字!لكن لا بد أن漢字</text>
+ </g>
+ </g>
+
+</svg>