spec link:20.8 Describing a font , Full version , Basic version , Tiny version

fonts-desc-04-t index fonts-elem-01-t

Test name:fonts-desc-05-t
SVG Image | PNG Image
a a a a a a a $Revision: 1.5 $ |

This tests a combination of font attribute matching. The correct result for the first line is diamond, diamond, upward-triangle, downard-triangle. The correct result for the second line is upward-triangle, downard triangle, and a right-triangle.

Reasoning for glyphs on the first line: The first character is a diamond because it is matched purely on the font-style attribute. The second character is a diamond because font-style (italic) is of highest precedence, followed by font-variant (normal), then font-weight (bold). The third character matches upward-triangle because again font-variant (small-caps) is a higher precedence than font-weight. The fourth character undisputedly matches the downward-triangle.

Reasoning for the glyphs on the second line: The first character is a upward-triangle because the font matching must fall back to SVGFont1 to get a match for small-caps. The second character is a downward-triangle because there is no match for small-caps in SVGFont2. The third character is a right facing triangle because italic should match oblique in SVGFont2.