aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-regions-1_dev/html/javascript-stacking-context-001.htm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/css-tests/css-regions-1_dev/html/javascript-stacking-context-001.htm')
-rw-r--r--tests/wpt/css-tests/css-regions-1_dev/html/javascript-stacking-context-001.htm9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/wpt/css-tests/css-regions-1_dev/html/javascript-stacking-context-001.htm b/tests/wpt/css-tests/css-regions-1_dev/html/javascript-stacking-context-001.htm
index 4068cbfe363..c40a2a021af 100644
--- a/tests/wpt/css-tests/css-regions-1_dev/html/javascript-stacking-context-001.htm
+++ b/tests/wpt/css-tests/css-regions-1_dev/html/javascript-stacking-context-001.htm
@@ -18,7 +18,7 @@
color: lime;
flow-into: f;
}
-
+
.region {
position: absolute;
top: 50px;
@@ -107,14 +107,14 @@
applyClasses(".region", [ "middle", "front", "back" ]);
assert_true(regionsEnabled, "Regions is enabled");
- assert_equals(document.elementFromPoint(60, 100), document.querySelector(".front"));
+ assert_equals(document.elementFromPoint(60, 100), document.querySelector(".front"));
}, "document.elementFromPoint() for point on region border, with all regions overlapping with non-auto z-index");
test(function() {
applyClasses(".region", [ "right middle", "left front", " center back" ]);
assert_true(regionsEnabled, "Regions is enabled");
- assert_equals(document.elementFromPoint(60, 100), document.querySelector(".front"));
+ assert_equals(document.elementFromPoint(60, 100), document.querySelector(".front"));
}, "document.elementFromPoint() for point on region border, with regions partially overlapping with non-auto z-index");
test(function() {
@@ -122,11 +122,12 @@
assert_true(regionsEnabled, "Regions is enabled");
//we're checking the "right middle" region, inside it
- assert_equals(document.elementFromPoint(180, 210), document.querySelector("#block1"));
+ assert_equals(document.elementFromPoint(180, 210), document.querySelector("#block1"));
}, "document.elementFromPoint() for point inside region (effectively, content node), with regions partially overlapping with non-auto z-index");
}
runTests();
</script>
+
</body></html> \ No newline at end of file