diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/svg/styling/render | |
parent | Initial commit. (diff) | |
download | firefox-upstream.tar.xz firefox-upstream.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/svg/styling/render')
8 files changed, 133 insertions, 0 deletions
diff --git a/testing/web-platform/tests/svg/styling/render/transform-box-ref.svg b/testing/web-platform/tests/svg/styling/render/transform-box-ref.svg new file mode 100644 index 0000000000..b41f8bb2a7 --- /dev/null +++ b/testing/web-platform/tests/svg/styling/render/transform-box-ref.svg @@ -0,0 +1,15 @@ +<svg xmlns="http://www.w3.org/2000/svg" + xmlns:h="http://www.w3.org/1999/xhtml" + xmlns:xlink="http://www.w3.org/1999/xlink" + width="300" height="200" viewBox="0 0 300 200"> + <style> + rect { + fill: cyan; + stroke: cyan; + stroke-width: 16px; + } + </style> + <g transform="translate(140, 130)"> + <rect id="r" x="-30" y="-10" width="80" height="20" /> + </g> +</svg> diff --git a/testing/web-platform/tests/svg/styling/render/transform-box.svg b/testing/web-platform/tests/svg/styling/render/transform-box.svg new file mode 100644 index 0000000000..99a273c176 --- /dev/null +++ b/testing/web-platform/tests/svg/styling/render/transform-box.svg @@ -0,0 +1,24 @@ +<svg xmlns="http://www.w3.org/2000/svg" + xmlns:h="http://www.w3.org/1999/xhtml" + xmlns:xlink="http://www.w3.org/1999/xlink" + width="300" height="200" viewBox="0 0 300 200"> + <metadata> + <h:link rel="help" href="https://svgwg.org/svg2-draft/styling.html#RequiredProperties"/> + <h:link rel="match" href="transform-box-ref.svg"/> + <h:meta name="assert" content="The transform-box property impacts SVG rendering."/> + </metadata> + + <style> + #r { + fill: cyan; + stroke: cyan; + stroke-width: 8px; + transform-box: fill-box; + transform-origin: 75% 100%; + transform: scale(2, 2); + } + </style> + <g transform="translate(140, 130)"> + <rect id="r" x="0" y="0" width="40" height="10" /> + </g> +</svg> diff --git a/testing/web-platform/tests/svg/styling/render/transform-origin-not-explicit-style-visual-ref.svg b/testing/web-platform/tests/svg/styling/render/transform-origin-not-explicit-style-visual-ref.svg new file mode 100644 index 0000000000..7cb98da727 --- /dev/null +++ b/testing/web-platform/tests/svg/styling/render/transform-origin-not-explicit-style-visual-ref.svg @@ -0,0 +1,13 @@ +<svg xmlns="http://www.w3.org/2000/svg" + xmlns:h="http://www.w3.org/1999/xhtml" + xmlns:xlink="http://www.w3.org/1999/xlink" + width="300" height="200" viewBox="0 0 300 200"> + <style> + rect { + fill: green; + } + </style> + <g transform="translate(140, 130)"> + <rect x="-30" y="-20" width="80" height="30"/> + </g> +</svg> diff --git a/testing/web-platform/tests/svg/styling/render/transform-origin-not-explicit-style-visual.svg b/testing/web-platform/tests/svg/styling/render/transform-origin-not-explicit-style-visual.svg new file mode 100644 index 0000000000..e05c2f01c1 --- /dev/null +++ b/testing/web-platform/tests/svg/styling/render/transform-origin-not-explicit-style-visual.svg @@ -0,0 +1,18 @@ +<svg xmlns="http://www.w3.org/2000/svg" + xmlns:h="http://www.w3.org/1999/xhtml" + xmlns:xlink="http://www.w3.org/1999/xlink" + width="300" height="200" viewBox="0 0 300 200"> + <metadata> + <h:link rel="help" href="ttps://www.w3.org/TR/css-transforms-1/#transform-attribute-specificity"/> + <link rel="match" href="transform-origin-not-explicit-style-ref.svg"/> + <h:meta name="assert" content="The transform-origin attribute impacts SVG rendering."/> + </metadata> + <style> + rect { + fill: green; + } + </style> + <g transform="translate(140, 130)"> + <rect x="0" y="0" width="40" height="10" transform="scale(2, 3)" transform-origin="30 10"/> + </g> +</svg> diff --git a/testing/web-platform/tests/svg/styling/render/transform-origin-ref.svg b/testing/web-platform/tests/svg/styling/render/transform-origin-ref.svg new file mode 100644 index 0000000000..b0e3b47e0d --- /dev/null +++ b/testing/web-platform/tests/svg/styling/render/transform-origin-ref.svg @@ -0,0 +1,13 @@ +<svg xmlns="http://www.w3.org/2000/svg" + xmlns:h="http://www.w3.org/1999/xhtml" + xmlns:xlink="http://www.w3.org/1999/xlink" + width="300" height="200" viewBox="0 0 300 200"> + <style> + rect { + fill: cyan; + } + </style> + <g transform="translate(140, 130)"> + <rect x="-30" y="-20" width="80" height="30" /> + </g> +</svg> diff --git a/testing/web-platform/tests/svg/styling/render/transform-origin.svg b/testing/web-platform/tests/svg/styling/render/transform-origin.svg new file mode 100644 index 0000000000..07e7dd7ee2 --- /dev/null +++ b/testing/web-platform/tests/svg/styling/render/transform-origin.svg @@ -0,0 +1,21 @@ +<svg xmlns="http://www.w3.org/2000/svg" + xmlns:h="http://www.w3.org/1999/xhtml" + xmlns:xlink="http://www.w3.org/1999/xlink" + width="300" height="200" viewBox="0 0 300 200"> + <metadata> + <h:link rel="help" href="https://svgwg.org/svg2-draft/styling.html#RequiredProperties"/> + <h:link rel="match" href="transform-origin-ref.svg"/> + <h:meta name="assert" content="The transform-origin property impacts SVG rendering."/> + </metadata> + + <style> + rect { + fill: cyan; + transform-origin: 30px 10px; + transform: scale(2, 3); + } + </style> + <g transform="translate(140, 130)"> + <rect x="0" y="0" width="40" height="10" /> + </g> +</svg> diff --git a/testing/web-platform/tests/svg/styling/render/transform-ref.svg b/testing/web-platform/tests/svg/styling/render/transform-ref.svg new file mode 100644 index 0000000000..02f49c6da3 --- /dev/null +++ b/testing/web-platform/tests/svg/styling/render/transform-ref.svg @@ -0,0 +1,11 @@ +<svg xmlns="http://www.w3.org/2000/svg" + xmlns:h="http://www.w3.org/1999/xhtml" + xmlns:xlink="http://www.w3.org/1999/xlink" + width="300" height="200" viewBox="0 0 300 200"> + <style> + rect { + fill: cyan; + } + </style> + <rect x="169" y="141" width="40" height="10" /> +</svg> diff --git a/testing/web-platform/tests/svg/styling/render/transform.svg b/testing/web-platform/tests/svg/styling/render/transform.svg new file mode 100644 index 0000000000..1924026f98 --- /dev/null +++ b/testing/web-platform/tests/svg/styling/render/transform.svg @@ -0,0 +1,18 @@ +<svg xmlns="http://www.w3.org/2000/svg" + xmlns:h="http://www.w3.org/1999/xhtml" + xmlns:xlink="http://www.w3.org/1999/xlink" + width="300" height="200" viewBox="0 0 300 200"> + <metadata> + <h:link rel="help" href="https://svgwg.org/svg2-draft/styling.html#RequiredProperties"/> + <h:link rel="match" href="transform-ref.svg"/> + <h:meta name="assert" content="The transform property impacts SVG rendering."/> + </metadata> + + <style> + rect { + fill: cyan; + transform: translate(29px, 11px); + } + </style> + <rect x="140" y="130" width="40" height="10" /> +</svg> |