Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/fonts/zero-font-size-adjust-no-glyphs-zero-height-font.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Verify effect of font-size-adjust: 0 on a zero height no glyphs SVG Font</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
pre { font-size-adjust: 0; font-family: CustomMonospace }
</style>
<svg>
<font>
<font-face font-family="CustomMonospace" ascent="0"/>
</font>
</svg>
<pre id="pre">Text
</pre>
<script>
test((t) => {
assert_equals(pre.getBoundingClientRect().height, 0);
}, "Verify effect of font-size-adjust: 0 on zero height no glyphs SVG Font");
</script>