aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/css/css-display
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-display')
-rw-r--r--tests/wpt/web-platform-tests/css/css-display/display-contents-root-background-ref.html4
-rw-r--r--tests/wpt/web-platform-tests/css/css-display/display-contents-root-background.html12
2 files changed, 16 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-display/display-contents-root-background-ref.html b/tests/wpt/web-platform-tests/css/css-display/display-contents-root-background-ref.html
new file mode 100644
index 00000000000..720ef20d832
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-display/display-contents-root-background-ref.html
@@ -0,0 +1,4 @@
+<!doctype html>
+<html style="background:green">
+<title>CSS Test Reference</title>
+<p>Pass if the background is green.</p>
diff --git a/tests/wpt/web-platform-tests/css/css-display/display-contents-root-background.html b/tests/wpt/web-platform-tests/css/css-display/display-contents-root-background.html
new file mode 100644
index 00000000000..6770266f513
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-display/display-contents-root-background.html
@@ -0,0 +1,12 @@
+<!doctype html>
+<title>CSS Test: display:contents on root element blockified with rendered background.</title>
+<link rel="help" href="https://drafts.csswg.org/css-display/#the-display-properties">
+<link rel="help" href="https://drafts.csswg.org/css-display/#transformations">
+<link rel="match" href="display-contents-root-background-ref.html">
+<style>
+ :root {
+ display: contents;
+ background-image: url(../support/1x1-green.png);
+ }
+</style>
+<p>Pass if the background is green.</p>