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

Side by Side Diff: LayoutTests/fast/dom/Element/getBoundingClientRect.html

Issue 1153173011: Force glyph overflow calculation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: More rebaselines Created 5 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
OLDNEW
1 <script src="../../../resources/js-test.js"></script> 1 <script src="../../../resources/js-test.js"></script>
2 <style> 2 <style>
3 body { 3 body {
4 font: 16px Ahem; 4 font: 16px Ahem;
5 } 5 }
6 6
7 #base { 7 #base {
8 width: 300px; 8 width: 300px;
9 height: 100px; 9 height: 100px;
10 } 10 }
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 document.documentElement.appendChild(bbox); 126 document.documentElement.appendChild(bbox);
127 } 127 }
128 128
129 var fail = undefined; 129 var fail = undefined;
130 130
131 var expectedResults = [ 131 var expectedResults = [
132 /*1*/ { left: 8, top: 40, width: 300, height: 100 }, 132 /*1*/ { left: 8, top: 40, width: 300, height: 100 },
133 /*2*/ { left: 8, top: 188, width: 320, height: 120 }, 133 /*2*/ { left: 8, top: 188, width: 320, height: 120 },
134 /*3*/ { left: 18, top: 356, width: 300, height: 100 }, 134 /*3*/ { left: 18, top: 356, width: 300, height: 100 },
135 /*4*/ { left: 37.289, top: 483.289, width: 141.421, height: 141.421 }, 135 /*4*/ { left: 37.289, top: 483.289, width: 141.421, height: 141.421 },
136 // On Mac, this fails because of crbug.com/498030.
136 /*5*/ { left: 8, top: 652, width: 300, height: 368 }, 137 /*5*/ { left: 8, top: 652, width: 300, height: 368 },
137 /*6*/ { left: fail, top: fail, width: fail, height: fail }, 138 /*6*/ { left: fail, top: fail, width: fail, height: fail },
138 /*7*/ { left: 8, top: 1484, width: 288, height: 464 }, 139 /*7*/ { left: 8, top: 1484, width: 288, height: 464 },
139 /*8*/ { left: 8, top: 1996, width: 300, height: 74 }, 140 /*8*/ { left: 8, top: 1996, width: 300, height: 74 },
140 /*9*/ { left: 8, top: 2134, width: 300, height: 90 }, 141 /*9*/ { left: 8, top: 2134, width: 300, height: 90 },
141 /*10*/ { left: 8, top: 2274, width: 300, height: 34 }, 142 /*10*/ { left: 8, top: 2274, width: 300, height: 34 },
142 /*11*/ { left: 10, top: 2396, width: 147, height: 34 }, 143 /*11*/ { left: 10, top: 2396, width: 147, height: 34 },
143 /*12*/ { left: 8, top: 2532, width: 100, height: 100 }, 144 /*12*/ { left: 8, top: 2532, width: 100, height: 100 },
144 /*13*/ { left: 8, top: 2783, width: 260, height: 16 }, 145 /*13*/ { left: 8, top: 2783, width: 260, height: 16 },
145 /*14*/ { left: 8, top: 2863, width: 300, height: 232 }, 146 /*14*/ { left: 8, top: 2863, width: 300, height: 232 },
(...skipping 17 matching lines...) Expand all
163 164
164 var tests = document.getElementsByClassName("testBox"); 165 var tests = document.getElementsByClassName("testBox");
165 for (var i = 0; i < tests.length; ++i) 166 for (var i = 0; i < tests.length; ++i)
166 test(i + 1, tests[i]); 167 test(i + 1, tests[i]);
167 168
168 if (window.testRunner) { 169 if (window.testRunner) {
169 var area = document.getElementById('testArea'); 170 var area = document.getElementById('testArea');
170 area.parentNode.removeChild(area); 171 area.parentNode.removeChild(area);
171 } 172 }
172 </script> 173 </script>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/text/fractional-word-and-letter-spacing-with-kerning.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698