diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wpt/meta/MANIFEST.json | 13 | ||||
-rw-r--r-- | tests/wpt/tests/css/CSS2/zindex/z-index-020.html | 39 |
2 files changed, 52 insertions, 0 deletions
diff --git a/tests/wpt/meta/MANIFEST.json b/tests/wpt/meta/MANIFEST.json index 8f64883c6be..59a4cc1cfd8 100644 --- a/tests/wpt/meta/MANIFEST.json +++ b/tests/wpt/meta/MANIFEST.json @@ -119171,6 +119171,19 @@ {} ] ], + "z-index-020.html": [ + "34a7272a2541e779c487fe3501d6e6cd3f751f51", + [ + null, + [ + [ + "/css/reference/ref-filled-green-200px-square.html", + "==" + ] + ], + {} + ] + ], "z-index-abspos-001.xht": [ "63a44d15a7dce6e1a2df6124ff1064d0a68392ab", [ diff --git a/tests/wpt/tests/css/CSS2/zindex/z-index-020.html b/tests/wpt/tests/css/CSS2/zindex/z-index-020.html new file mode 100644 index 00000000000..34a7272a254 --- /dev/null +++ b/tests/wpt/tests/css/CSS2/zindex/z-index-020.html @@ -0,0 +1,39 @@ +<!DOCTYPE html> +<html class="reftest-wait"> +<title>CSS Test: z-index - dynamic changes</title> +<link rel="author" title="Oriol Brufau" href="obrufau@igalia.com"> +<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#z-index" /> +<link rel="match" href="../../reference/ref-filled-green-200px-square.html"> +<meta name="assert" content="Checks that z-index can be changed dynamically."> +<style> +div { + width: 200px; + height: 200px; + position: absolute; +} +#red { + background: red; +} +#target { + background: green; + z-index: -1; +} +#target.front { + z-index: 1; +} +</style> + +<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> + +<div id="red"></div> +<div id="target"></div> + +<script src="/common/reftest-wait.js"></script> +<script src="/common/rendering-utils.js"></script> +<script> +waitForAtLeastOneFrame().then(() => { + document.getElementById("target").className = "front"; + takeScreenshot(); +}); +</script> +</html> |