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

Side by Side Diff: LayoutTests/fast/text-autosizing/cluster-list-item.html

Issue 16019004: Text Autosizing: Treat position:absolute/fixed as constrained height. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/fast/text-autosizing/cluster-list-item-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 4
5 <meta name="viewport" content="width=800"> 5 <meta name="viewport" content="width=800">
6 <style> 6 <style>
7 html { font-size: 16px; } 7 html { font-size: 16px; }
8 body { width: 800px; margin: 0; overflow-y: hidden; } 8 body { width: 800px; margin: 0; overflow-y: hidden; }
9 </style> 9 </style>
10 10
(...skipping 15 matching lines...) Expand all
26 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 26 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
27 </li> 27 </li>
28 <li> 28 <li>
29 This element is autosized to computed font size of 20px similarl y to the first list item.<br> 29 This element is autosized to computed font size of 20px similarl y to the first list item.<br>
30 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 30 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
31 </li> 31 </li>
32 <li style="float: left; width: 800px"> 32 <li style="float: left; width: 800px">
33 This list element becomes a separate autosizing cluster since it 's floating. Hence its computed font size is 40px (16 * 400 / 320).<br> 33 This list element becomes a separate autosizing cluster since it 's floating. Hence its computed font size is 40px (16 * 400 / 320).<br>
34 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 34 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
35 </li> 35 </li>
36 » <li style="position: absolute; margin-top: 280px; width: 800px"> 36 » <li style="position: absolute; overflow: auto; margin-top: 280px; width: 800px">
37 This list element becomes a separate autosizing cluster since it 's positioned out of the list flow. Hence its computed font size is 40px (16 * 4 00 / 320).<br> 37 This list element becomes a separate autosizing cluster since it 's positioned out of the list flow. Hence its computed font size is 40px (16 * 4 00 / 320).<br>
38 Margin is added so it doesn't overlap with the previous element. <br> 38 Margin is added so it doesn't overlap with the previous element. <br>
39 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 39 Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
40 </li> 40 </li>
41 </ul> 41 </ul>
42 </body> 42 </body>
43 </head> 43 </head>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/text-autosizing/cluster-list-item-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698