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

Side by Side Diff: LayoutTests/inspector/elements/highlight-svg-root.html

Issue 662603002: [DevTools] Adjust svg elements highlight to the root FrameView origin. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed review comments Created 6 years, 1 month 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 4
5 <style> 5 <style>
6 6
7 body { 7 body {
8 margin: 0; 8 margin: 0;
9 } 9 }
10 #svg-root { 10 #svg-root {
11 margin: 5px; 11 margin: 5px;
12 border: solid 10px aqua; 12 border: solid 10px aqua;
13 padding: 15px; 13 padding: 15px;
14 background-color: blue; 14 background-color: blue;
15 } 15 }
16 16
17 </style> 17 </style>
18 18
19 <script src="../../http/tests/inspector/inspector-test.js"></script> 19 <script src="../../http/tests/inspector/inspector-test.js"></script>
20 <script src="../../http/tests/inspector/elements-test.js"></script> 20 <script src="../../http/tests/inspector/elements-test.js"></script>
21 <script> 21 <script>
22 22
23 function test() 23 function test()
24 { 24 {
25 function nodeSelected(node) 25 InspectorTest.dumpInspectorHighlightJSON("svg-root", InspectorTest.completeT est.bind(InspectorTest));
26 {
27 InspectorTest.dumpInspectorHighlight(node, InspectorTest.completeTest.bi nd(InspectorTest));
28 }
29
30 InspectorTest.selectNodeWithId("svg-root", nodeSelected);
31 } 26 }
32 27
33 </script> 28 </script>
34 </head> 29 </head>
35 30
36 <body onload="runTest()"> 31 <body onload="runTest()">
37 32
38 <svg id="svg-root" width="100" height="100" viewbox="0 0 50 50"></svg> 33 <svg id="svg-root" width="100" height="100" viewbox="0 0 50 50"></svg>
39 <p id="description">This test verifies the position and size of the highlight re ctangles overlayed on an SVG root element.</p> 34 <p id="description">This test verifies the position and size of the highlight re ctangles overlayed on an SVG root element.</p>
40 35
41 </body> 36 </body>
42 </html> 37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698