summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-page/crashtests
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-page/crashtests')
-rw-r--r--testing/web-platform/tests/css/css-page/crashtests/match-media-listener-relayout-inside-fixed-size-overflow-hidden-print.html14
-rw-r--r--testing/web-platform/tests/css/css-page/crashtests/match-media-listener-shrink-content-print.html16
2 files changed, 30 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-page/crashtests/match-media-listener-relayout-inside-fixed-size-overflow-hidden-print.html b/testing/web-platform/tests/css/css-page/crashtests/match-media-listener-relayout-inside-fixed-size-overflow-hidden-print.html
new file mode 100644
index 0000000000..77f9dc335f
--- /dev/null
+++ b/testing/web-platform/tests/css/css-page/crashtests/match-media-listener-relayout-inside-fixed-size-overflow-hidden-print.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1507840">
+<div style="position:relative; overflow:hidden; width:100px; height:100px;">
+ <div style="position:absolute; width:100px; height:100px; background:green;">
+ <div id="trouble"></div>
+ </div>
+</div>
+<script>
+ var mediaQuery = window.matchMedia("print");
+ mediaQuery.addListener(function() {
+ trouble.style.width = "100px";
+ });
+</script>
diff --git a/testing/web-platform/tests/css/css-page/crashtests/match-media-listener-shrink-content-print.html b/testing/web-platform/tests/css/css-page/crashtests/match-media-listener-shrink-content-print.html
new file mode 100644
index 0000000000..dc8e691224
--- /dev/null
+++ b/testing/web-platform/tests/css/css-page/crashtests/match-media-listener-shrink-content-print.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
+<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1503093">
+<style>
+ @page {
+ size: 500px;
+ margin: 0;
+ }
+</style>
+<div id="shrinkme" style="height:5000px;"></div>
+<script>
+ var mediaQuery = window.matchMedia("print");
+ mediaQuery.addListener(function() {
+ shrinkme.style.height = "2000px";
+ });
+</script>