diff options
Diffstat (limited to 'testing/web-platform/tests/svg/painting/reftests')
-rw-r--r-- | testing/web-platform/tests/svg/painting/reftests/paint-context-006-ref.svg | 21 | ||||
-rw-r--r-- | testing/web-platform/tests/svg/painting/reftests/paint-context-006.svg | 36 |
2 files changed, 57 insertions, 0 deletions
diff --git a/testing/web-platform/tests/svg/painting/reftests/paint-context-006-ref.svg b/testing/web-platform/tests/svg/painting/reftests/paint-context-006-ref.svg new file mode 100644 index 0000000000..6aa42374c5 --- /dev/null +++ b/testing/web-platform/tests/svg/painting/reftests/paint-context-006-ref.svg @@ -0,0 +1,21 @@ +<svg id="svg-root" viewBox="0 0 800 600" + xmlns="http://www.w3.org/2000/svg" + xmlns:html="http://www.w3.org/1999/xhtml"> + <g id="testmeta"> + <title>Paint: 'context-fill' for markers with gradient</title> + <html:link rel="author" + title="Stefan Zager" + href="mailto:szager@chromium.org"/> + </g> + + <defs> + <linearGradient id="lg" x1="10%"> + <stop offset="0" stop-color="red"/> + <stop offset="1" stop-color="blue"/> + </linearGradient> + </defs> + + <path id="test-reference" fill="url(#lg)" + d="M 90 75 h 400 v 50 h 200 v 400 h -540 v -350 h -60 Z"/> + <text x="290" y="105" style="font-size:96px" stroke="black" fill="none" rotate="45">A</text> +</svg> diff --git a/testing/web-platform/tests/svg/painting/reftests/paint-context-006.svg b/testing/web-platform/tests/svg/painting/reftests/paint-context-006.svg new file mode 100644 index 0000000000..95bd2740fa --- /dev/null +++ b/testing/web-platform/tests/svg/painting/reftests/paint-context-006.svg @@ -0,0 +1,36 @@ +<svg id="svg-root" viewBox="0 0 800 600" + xmlns="http://www.w3.org/2000/svg" + xmlns:html="http://www.w3.org/1999/xhtml"> + <g id="testmeta"> + <title>Paint: 'context-fill' for markers with gradient</title> + <html:link rel="author" + title="Stefan Zager" + href="mailto:szager@chromium.org"/> + <html:link rel="help" + href="https://www.w3.org/TR/SVG2/painting.html#SpecifyingPaint"/> + <html:link rel="match" href="paint-context-006-ref.svg" /> + </g> + + <defs> + <linearGradient id="lg"> + <stop offset="0" stop-color="red"/> + <stop offset="1" stop-color="blue"/> + </linearGradient> + + <marker id="inner-marker" refX="50" refY="20" markerWidth="100" markerHeight="50"> + <rect width="100" height="50" fill="context-fill"/> + </marker> + + <marker id="marker" refX="50" refY="340" markerWidth="100" markerHeight="400" orient="0.25turn"> + <g fill="context-fill"> + <rect y="40" width="100" height="360"/> + <text x="30" y="200" style="font-size:96px" stroke="black" rotate="-45">A</text> + <path d="M 50 40 v -20" marker-end="url(#inner-marker)"/> + </g> + </marker> + </defs> + + <path id="test-body-content" fill="url(#lg)" + d="M 150 125 h 540 v 400 h -540 Z" + marker-start="url(#marker)"/> +</svg> |