summaryrefslogtreecommitdiffstats
path: root/layout/reftests/text-svgglyphs/clip.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /layout/reftests/text-svgglyphs/clip.html
parentInitial commit. (diff)
downloadfirefox-43a97878ce14b72f0981164f87f2e35e14151312.tar.xz
firefox-43a97878ce14b72f0981164f87f2e35e14151312.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--layout/reftests/text-svgglyphs/clip.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/layout/reftests/text-svgglyphs/clip.html b/layout/reftests/text-svgglyphs/clip.html
new file mode 100644
index 0000000000..4f91ff10c3
--- /dev/null
+++ b/layout/reftests/text-svgglyphs/clip.html
@@ -0,0 +1,39 @@
+<html class="reftest-wait">
+ <!--
+ This test makes sure that the glyph extents are being extended to
+ the bounds of the SVG glyph by placing an SVG glyph in a div outside
+ the truetype extents but inside the SVG extents
+ -->
+ <head>
+ <style type="text/css">
+ @font-face {
+ font-family : svgttf;
+ src : url(resources/svg.woff);
+ }
+
+ body {
+ font-family : svgttf;
+ font-size : 200px;
+ color : palevioletred;
+ }
+
+ div {
+ width : 160px;
+ overflow : hidden;
+ }
+ </style>
+ <script type="text/javascript">
+ function expand() {
+ var div = document.getElementById("thediv");
+ div.style.width = "200px";
+ document.documentElement.removeAttribute("class");
+ }
+ window.addEventListener("MozReftestInvalidate", expand);
+ </script>
+ </head>
+ <body>
+ <div id="thediv">
+O<br>
+ </div>
+ </body>
+</html>