Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/media/resolution-change-on-page-zoom.html

Issue 2038793002: Clear media query rulesets on page zoom changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/media/resolution-change-on-page-zoom-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
Yoav Weiss 2016/06/03 10:15:49 Could you rewrite the test using testharness? It's
rune 2016/06/03 11:09:08 Done.
3 <style>
4 @media (min-resolution: 2dppx) {
5 body { background-color: green; }
6 }
7 </style>
8 <p>The viewport should have a green background for page zoom = 200%.</p>
9 <script>
10 description("Check that page zoom causes resolution media query changes to t ake effect.");
11
12 jsTestIsAsync = true;
13
14 matchMedia("(min-resolution: 2dppx)").addListener((mq) => {
15 shouldBeTrue(mq.matches);
16 shouldBeEqualToString("getComputedStyle(document.body).backgroundColor", "rgb(0, 128, 0)");
17 finishJSTest();
18 });
19
20 onload = () => {
21 document.body.offsetTop;
22 if (window.eventSender)
23 eventSender.setPageZoomFactor(2.0);
24 };
25 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/media/resolution-change-on-page-zoom-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698