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

Side by Side Diff: LayoutTests/inspector-protocol/css/css-get-media-queries.html

Issue 339553004: DevTools: [MediaQueryInspector] Compute media query length on backend (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/inspector-protocol/css/css-get-media-queries-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
1 <html> 1 <html>
2 <head> 2 <head>
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script> 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script>
4 <script type="text/javascript"> 4 <script type="text/javascript">
5 function test() 5 function test()
6 { 6 {
7 InspectorTest.sendCommandOrDie("CSS.enable", {}, onCSSEnabled); 7 InspectorTest.sendCommandOrDie("CSS.enable", {}, onCSSEnabled);
8 8
9 function onCSSEnabled() 9 function onCSSEnabled()
10 { 10 {
(...skipping 22 matching lines...) Expand all
33 continue; 33 continue;
34 } 34 }
35 for (var j = 0; j < mediaRule.mediaList.length; ++j) { 35 for (var j = 0; j < mediaRule.mediaList.length; ++j) {
36 var mediaQuery = mediaRule.mediaList[j]; 36 var mediaQuery = mediaRule.mediaList[j];
37 InspectorTest.log(" mediaQuery #" + j); 37 InspectorTest.log(" mediaQuery #" + j);
38 for (var k = 0; k < mediaQuery.length; ++k) { 38 for (var k = 0; k < mediaQuery.length; ++k) {
39 var expression = mediaQuery[k]; 39 var expression = mediaQuery[k];
40 InspectorTest.log(" mediaExpression #" + k); 40 InspectorTest.log(" mediaExpression #" + k);
41 InspectorTest.log(" feature: " + expression.featu re); 41 InspectorTest.log(" feature: " + expression.featu re);
42 InspectorTest.log(" value: " + expression.value + expression.unit); 42 InspectorTest.log(" value: " + expression.value + expression.unit);
43 if (expression.computedLength)
44 InspectorTest.log(" computed length: " + expr ession.computedLength);
43 } 45 }
44 } 46 }
45 } 47 }
46 InspectorTest.completeTest(); 48 InspectorTest.completeTest();
47 } 49 }
48 }; 50 };
49 </script> 51 </script>
50 <link rel="stylesheet" media="print and (min-width: 8.5in)" href="./resources/me dia-queries.css"></link> 52 <link rel="stylesheet" media="print and (min-width: 8.5in)" href="./resources/me dia-queries.css"></link>
51 <style> 53 <style>
52 @media screen and (device-aspect-ratio: 16/9), screen and (device-aspect-ratio: 16/10) { 54 @media screen and (device-aspect-ratio: 16/9), screen and (device-aspect-ratio: 16/10) {
53 * { 55 * {
54 padding: 1em; 56 padding: 1em;
55 } 57 }
56 58
57 @media (max-width: 200px) and (min-width: 100px) { 59 @media (max-width: 200px) and (min-width: 100px) {
58 * { 60 * {
59 margin: 1in; 61 margin: 1in;
60 } 62 }
61 } 63 }
62 } 64 }
63 </style> 65 </style>
64 </head> 66 </head>
65 <body onload="runTest()"> 67 <body onload="runTest()">
66 </body> 68 </body>
67 </html> 69 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector-protocol/css/css-get-media-queries-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698