Full version, Basic version

Specification link: 7.10 Units

coords-trans-01-b ← index → coords-units-02-b

# coords-units-01-b
SVG Image | PNG Image

Verify the conversion processing of percentage and fraction values relative to object bounding boxes. This is used when defining linear and radial gradients as well as patterns.

The test validates conversion for coordinates, width, height and length. The first test defines three corresponding linear gradients, which specify coordinates using percentages for one, fractions for the second and user coordinates for the third. The second test defines three corresponding radial gradients, which specify a length (radius) using percentages for the first, fractions for the second and user space for the third. Finally, the third test defines three corresponding patterns, which specify their width and height using percentages for the first, fractions for the second and user space coordinates for the last one.

The rendered image should match the reference image. Also, the text may show minor differences, per CSS2 rules for font selection and matching.

The test also assumes that linear and radial gradients, as well as patterns are implemented.

coords-trans-01-b ← index → coords-units-02-b

Distributed under both the W3C Test Suite License and the W3C 3-clause BSD License.
To contribute to a W3C Test Suite, see the policies and contribution forms.