summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/painting/reftests/display-none-mask-ref.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/svg/painting/reftests/display-none-mask-ref.html')
-rw-r--r--testing/web-platform/tests/svg/painting/reftests/display-none-mask-ref.html50
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/web-platform/tests/svg/painting/reftests/display-none-mask-ref.html b/testing/web-platform/tests/svg/painting/reftests/display-none-mask-ref.html
new file mode 100644
index 0000000000..3739265b23
--- /dev/null
+++ b/testing/web-platform/tests/svg/painting/reftests/display-none-mask-ref.html
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+ <meta charset="UTF-8">
+</head>
+
+<body>
+ <svg width="200" height="200">
+ <foreignObject x="0" y="0" width="200" height="200">
+ <div style="width: 200px; height: 200px;"></div>
+ </foreignObject>
+ </svg>
+ <svg width="200" height="200">
+ <foreignObject x="0" y="0" width="200" height="200">
+ <div style="width: 200px; height: 200px; background: green"></div>
+ </foreignObject>
+ </svg>
+ <svg width="200" height="200">
+ <foreignObject x="0" y="0" width="200" height="200">
+ <div style="width: 200px; height: 200px;"></div>
+ </foreignObject>
+ </svg>
+ <svg width="200" height="200">
+ <foreignObject x="0" y="0" width="200" height="200">
+ <div style="width: 200px; height: 200px; background: green"></div>
+ </foreignObject>
+ </svg>
+
+ <!-- make sure masking actually works -->
+ <svg width="200" height="200">
+ <rect x="0" y="0" width="100" height="50" fill="green"></rect>
+ <rect x="0" y="100" width="100" height="50" fill="green"></rect>
+ </svg>
+ <svg width="200" height="200">
+ <rect x="0" y="0" width="100" height="50" fill="green"></rect>
+ <rect x="0" y="100" width="100" height="50" fill="green"></rect>
+ </svg>
+
+ <!-- make sure masking works on active content -->
+ <svg width="200" height="200">
+ <rect x="0" y="0" width="100" height="50" fill="green"></rect>
+ <rect x="0" y="100" width="100" height="50" fill="green"></rect>
+ </svg>
+ <svg width="200" height="200">
+ <rect x="0" y="0" width="100" height="50" fill="green"></rect>
+ <rect x="0" y="100" width="100" height="50" fill="green"></rect>
+ </svg>
+</body>
+</html>