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

Side by Side Diff: LayoutTests/fast/sub-pixel/float-containing-block-with-margin.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../js/resources/js-test-pre.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 <style> 5 <style>
6 ul > li { float: right; background: skyblue; } 6 ul > li { float: right; background: skyblue; }
7 ul > li > a { display: block; margin: 10.5px; text-decoration: none; } 7 ul > li > a { display: block; margin: 10.5px; text-decoration: none; }
8 </style> 8 </style>
9 </head> 9 </head>
10 <body> 10 <body>
11 <ul> 11 <ul>
12 <li><a href="#">Lorem ipsum</a></li> 12 <li><a href="#">Lorem ipsum</a></li>
13 <li><a href="#">dolor sit amet</a></li> 13 <li><a href="#">dolor sit amet</a></li>
14 <li><a href="#">consectetur adipiscing elit</a></li> 14 <li><a href="#">consectetur adipiscing elit</a></li>
15 </ul> 15 </ul>
16 Links to the right should not wrap. 16 Links to the right should not wrap.
17 17
18 <script> 18 <script>
19 var elements = document.getElementsByTagName('li'); 19 var elements = document.getElementsByTagName('li');
20 function getItemHeight(i) 20 function getItemHeight(i)
21 { 21 {
22 return elements[i].getBoundingClientRect().top; 22 return elements[i].getBoundingClientRect().top;
23 } 23 }
24 24
25 if (getItemHeight(0) == getItemHeight(1) && getItemHeight(0) == getI temHeight(2)) 25 if (getItemHeight(0) == getItemHeight(1) && getItemHeight(0) == getI temHeight(2))
26 testPassed('All list items are on the same line'); 26 testPassed('All list items are on the same line');
27 else 27 else
28 testFailed('Expected all list items to be on the same line.'); 28 testFailed('Expected all list items to be on the same line.');
29 </script> 29 </script>
30 </body> 30 </body>
31 </html> 31 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/sub-pixel/computedstylemargin.html ('k') | LayoutTests/fast/sub-pixel/float-percentage-widths.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698