font-family-rule-005

Font family unknown character glyph matching

WeasyPrint

This browser

Flags
dom
Assertion
Glyphs that are missing render as the missing glyph character and still report their initial character location, not the missing glyph location.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3     <head>
 4         <title>CSS Test: Font family unknown character glyph matching</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-family-prop">
 7         <meta name="flags" content="dom">
 8         <meta name="assert" content="Glyphs that are missing render as the missing glyph character and still report their initial character location, not the missing glyph location.">
 9         <style type="text/css">
10             #test
11             {
12                 color: white;
13             }
14         </style>
15     </head>
16     <body>
17         <p>Test passes if there is the word "PASS" below.</p>
18         <div id="test"></div>
19         <script type="text/javascript">
20             var pass = document.getElementById("test").textContent.charCodeAt(0) === 127;
21             document.body.appendChild(document.createTextNode(pass ? "PASS" : "FAIL"));
22         </script>
23     </body>
24 </html>