summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-masking/clip-path/clip-path-svg-text-css.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-masking/clip-path/clip-path-svg-text-css.html')
-rw-r--r--testing/web-platform/tests/css/css-masking/clip-path/clip-path-svg-text-css.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-masking/clip-path/clip-path-svg-text-css.html b/testing/web-platform/tests/css/css-masking/clip-path/clip-path-svg-text-css.html
new file mode 100644
index 0000000000..8a0d7111b0
--- /dev/null
+++ b/testing/web-platform/tests/css/css-masking/clip-path/clip-path-svg-text-css.html
@@ -0,0 +1,24 @@
+<!doctype html>
+<link rel="help" href="https://drafts.fxtf.org/css-masking-1/#ClipPathElement">
+<link rel="match" href="reference/clip-path-svg-text-css-ref.html">
+<meta name="fuzzy" content="0-1;0-200">
+<meta name="flags" content="ahem">
+<link rel="stylesheet" href="/fonts/ahem.css" />
+<style>
+text {
+ font: 50px/1 Ahem;
+ text-shadow: grey 10px 10px;
+ fill: none;
+ stroke: red;
+ stroke-width: 10px;
+}
+</style>
+<svg>
+ <defs>
+ <!-- clipPath works on raw geometry regardless of fill/stroke/shadow etc -->
+ <clipPath id="c">
+ <text x="30" y="50">Hello</text>
+ </clipPath>
+ </defs>
+ <rect width="200" height="100" fill="green" clip-path="url(#c)"/>
+</svg>