summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-page/crashtests/match-media-listener-relayout-inside-fixed-size-overflow-hidden-print.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-page/crashtests/match-media-listener-relayout-inside-fixed-size-overflow-hidden-print.html')
-rw-r--r--testing/web-platform/tests/css/css-page/crashtests/match-media-listener-relayout-inside-fixed-size-overflow-hidden-print.html14
1 files changed, 14 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>