Specification link: 20.8 Describing a font

fonts-desc-01-t ← index → fonts-desc-03-t

Tests that contain the draft-watermark are under development and may be incorrectly testing a feature.

# fonts-desc-02-t.svg
SVG Image | PNG Image

## Operator Script

Run the test. No interaction required.

## Pass Criteria

The first line of text should be 'square' 'triangle'.

The second line of text should be 'square' 'triangle'.

The third line of text should be 'square', 'diamond', 'square', 'diamond'. Note that the fonts provide no x-height so scaling (allowed by CSS) cannot be used to simulate a small cap from a regular font.

The last line of test can be 'square', 'a', 'a' (from a fallback font), 'diamond'. The first 'a' can be replaced with a smallcaps 'A', if there is a smallcaps font installed or if synthesis is supported.

## Test Description

This tests the behaviour of CSS font matching based on font-variant attribute.

The first line of text tests that the small-caps font is used for the second text element.

The second line of text tests that the order of font specification does not effect the selection of these fonts.

The third line of text tests that the correct font is selected when a font in the list does not support the variant required. Note that the fonts provide no x-height so scaling (allowed by CSS) cannot be used to simulate a small cap from a regular font.

The last line tests if small-caps are synthesized.

fonts-desc-01-t ← index → fonts-desc-03-t