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

Side by Side Diff: LayoutTests/fast/multicol/hit-test-end-of-column-with-line-height.html

Issue 25687002: Add support for the column-fill property. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <div id="target" style=" 2 <div id="target" style="
3 outline: dashed lightblue; 3 outline: dashed lightblue;
4 width: 400px;
5 -webkit-columns: 2; 4 -webkit-columns: 2;
6 -webkit-column-gap: 0; 5 -webkit-column-gap: 0;
6 -webkit-column-fill: auto;
7 columns: 2;
8 column-gap: 0;
9 column-fill: auto;
10 width: 400px;
7 height: 80px; 11 height: 80px;
8 font: 20px ahem; 12 font: 20px ahem;
9 line-height: 2; 13 line-height: 2;
10 ">Lorem ipsum dolor sit amet</div> 14 ">Lorem ipsum dolor sit amet</div>
11 <pre id="console"></pre> 15 <pre id="console"></pre>
12 <script> 16 <script>
13 if (window.testRunner) 17 if (window.testRunner)
14 testRunner.dumpAsText(); 18 testRunner.dumpAsText();
15 19
16 function log(message) 20 function log(message)
(...skipping 16 matching lines...) Expand all
33 37
34 // Clicking above the last line in the first column should not select anythi ng from the first 38 // Clicking above the last line in the first column should not select anythi ng from the first
35 // line on the second column. 39 // line on the second column.
36 hitOffset = document.caretRangeFromPoint(target.offsetLeft + 190, target.off setTop + 3).startOffset; 40 hitOffset = document.caretRangeFromPoint(target.offsetLeft + 190, target.off setTop + 3).startOffset;
37 log(hitOffset === 11 ? "PASS" : "FAIL: hit offset " + hitOffset + "."); 41 log(hitOffset === 11 ? "PASS" : "FAIL: hit offset " + hitOffset + ".");
38 42
39 // Clicking below the first line in the second column should not snap to the beginning of the line. 43 // Clicking below the first line in the second column should not snap to the beginning of the line.
40 hitOffset = document.caretRangeFromPoint(target.offsetLeft + 250, target.off setTop + 78).startOffset; 44 hitOffset = document.caretRangeFromPoint(target.offsetLeft + 250, target.off setTop + 78).startOffset;
41 log(hitOffset === 14 ? "PASS" : "FAIL: hit offset " + hitOffset + "."); 45 log(hitOffset === 14 ? "PASS" : "FAIL: hit offset " + hitOffset + ".");
42 </script> 46 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698