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

Side by Side Diff: LayoutTests/fast/text-autosizing/list-marker-numbered-with-autosizing.html

Issue 17071009: Consistently autosize markers in <ul> and <ol> lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@ls-TA-margins-14June
Patch Set: Created 7 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html style="font-size: 16px">
3 <head>
4
5 <meta name="viewport" content="width=800">
6 <style>
7 body {
8 width: 800px;
9 margin: 0;
10 overflow-y: hidden;
11 }
12 </style>
13
14 <script>
15 if (window.internals) {
16 window.internals.settings.setTextAutosizingEnabled(true);
17 window.internals.settings.setTextAutosizingWindowSizeOverride(320, 480);
18 } else if (window.console && console.warn) {
19 console.warn("This test depends on the Text Autosizing setting being true, s o run it in DumpRenderTree, or manually enable Text Autosizing, and either use a mobile device with 320px device-width (like Nexus S or iPhone), or define HACK_ FORCE_TEXT_AUTOSIZING_ON_DESKTOP.");
20 }
21 </script>
22
23 </head>
24 <body>
25
26 <div>
27 The below list items should be autosized to 40px computed font-size (16 * 800/32 0). Also the corresponding list markers should increase in size appropriately. T he whole list is shifted to the right by 36px (24 (widest marker width) * (2.5-1 ) rounded) to compensate the scaling of list item numbers and make sure they don 't get chopped off.
28 </div>
29 <ol>
30 <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</li>
31 <li>plain text</li>
32 <li><a href='#'>hyperlinked</a></li>
33 <li><a href='#'>hyperlinked</a> example</li>
34 <li><em>emphasized</em></li>
35 <li><em>emphasized</em> example</li>
36 <li><b>bold</b></li>
37 <li><b>bold</b> example</li>
38 <li><i>italic</i></li>
39 <li><i>italic</i> example</li>
40 <li><del>strikethrough</del></li>
41 <li><del>strikethrough</del> example</li>
42 </ol>
43
44 </body>
45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698