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

Unified Diff: LayoutTests/inspector/elements/highlight-svg-content-inside-iframe.html

Issue 662603002: [DevTools] Adjust svg elements highlight to the root FrameView origin. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Testing Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector/elements/highlight-svg-content-inside-iframe.html
diff --git a/LayoutTests/inspector/elements/highlight-svg-content-inside-iframe.html b/LayoutTests/inspector/elements/highlight-svg-content-inside-iframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..28c27b3c9b02fdfe4375e4caabee1c1eebc9d7de
--- /dev/null
+++ b/LayoutTests/inspector/elements/highlight-svg-content-inside-iframe.html
@@ -0,0 +1,42 @@
+<html>
+<head>
+
+<style>
+
+body {
+ margin: 0;
+}
+
+#container {
+ position: absolute;
+ overflow: hidden;
+ left: 100px;
+ top: 200px;
+}
+
+iframe {
+ width: 200px;
+ height: 200px;
+ border: none;
+}
+
+</style>
+
+<script src="../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../http/tests/inspector/elements-test.js"></script>
+<script>
+
+function test()
+{
+ InspectorTest.dumpInspectorHighlightJSON("svg-rect", InspectorTest.completeTest.bind(InspectorTest), "svg-iframe");
+}
+
+</script>
+</head>
+
+<body onload="runTest()">
+<div id="container">
+ <iframe id="svg-iframe" src="resources/highlight-svg-content-iframe.html"></iframe>
+</div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698