Specification link: 13.2 Gradients

pservers-grad-18-b ← index → pservers-grad-21-b

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

# pservers-grad-20-b.svg
SVG Image | PNG Image

## Operator Script

The left rectangle has four 'line' elements rotated in different ways. The stroke for the lines have a green solid stroke fallback which should be used if the gradient should be ignored. The right rectangle is the same as the left rectangle except that the stroke paintservers don't have a fallback specified.

## Pass Criteria

The test is passed if

- there are three lines with solid green stroke, and one line (from bottom left to top right) with a gradient stroke, visible in the left rectangle.
- there is a line from bottom left to top right with a gradient stroke, visible in the right rectangle.

## Test Description

This test has a gradient with gradientUnits='objectBoundingBox' which is a fade from black to white. The gradient is used for the stroke of a line. Vertical and horizontal lines don't have a boundingbox, since they are one-dimensional, even though the stroke-width makes it look like they should have a boundingbox with non-zero width and height. See the coordinate chapter, last paragraph of 7.11.

pservers-grad-18-b ← index → pservers-grad-21-b