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

Side by Side Diff: LayoutTests/fast/inline/inline-relative-offset-boundingbox.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../js/resources/js-test-pre.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 <script> 4 <script>
5 description('<a href="https://bugs.webkit.org/show_bug.cgi?id=91168">Bug 91168</a>: REGRESSION: RenderInline boundingBox ignores relative position offse t'); 5 description('<a href="https://bugs.webkit.org/show_bug.cgi?id=91168">Bug 91168</a>: REGRESSION: RenderInline boundingBox ignores relative position offse t');
6 6
7 function runTest() 7 function runTest()
8 { 8 {
9 inline = document.getElementById("inlineElement"); 9 inline = document.getElementById("inlineElement");
10 inlineRect = inline.getBoundingClientRect(); 10 inlineRect = inline.getBoundingClientRect();
11 inlineLeftOffset = parseInt(inline.style.left); 11 inlineLeftOffset = parseInt(inline.style.left);
12 parent = inline.parentNode; 12 parent = inline.parentNode;
13 parentRect = parent.getBoundingClientRect(); 13 parentRect = parent.getBoundingClientRect();
14 shouldBe("inlineRect.left", "parentRect.left + inlineLeftOffset"); 14 shouldBe("inlineRect.left", "parentRect.left + inlineLeftOffset");
15 } 15 }
16 16
17 window.onload = runTest; 17 window.onload = runTest;
18 </script> 18 </script>
19 </head> 19 </head>
20 <body> 20 <body>
21 <span id="inlineElement" style="position:relative; left:10px;"></span> 21 <span id="inlineElement" style="position:relative; left:10px;"></span>
22 </body> 22 </body>
23 </html> 23 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/inline/inline-position-top-align.html ('k') | LayoutTests/fast/innerHTML/innerHTML-special-elements.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698