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

Unified Diff: LayoutTests/fast/text-autosizing/list-marker-with-images-and-forms-autosizing-expected.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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/text-autosizing/list-marker-with-images-and-forms-autosizing-expected.html
diff --git a/LayoutTests/fast/text-autosizing/list-marker-with-images-and-forms-autosizing-expected.html b/LayoutTests/fast/text-autosizing/list-marker-with-images-and-forms-autosizing-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..54bf1fb3f33c9e1bf056a09a92137bc2c3b50ea8
--- /dev/null
+++ b/LayoutTests/fast/text-autosizing/list-marker-with-images-and-forms-autosizing-expected.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html style="font-size: 16px">
+<head>
+
+<meta name="viewport" content="width=800">
+<style>
+ body {
+ width: 800px;
+ margin: 0;
+ overflow-y: hidden;
+ }
+</style>
+
+</head>
+<body>
+
+<div style="font-size: 2.5rem">
+The below list item markers should be autosized by a factor of 2.5 (800/320). The whole list is shifted to the right by 11px (7 (marker width) * (2.5-1) rounded) to compensate the scaling of list item markers and make sure they don't get chopped off.
+</div>
+<ul style="-webkit-margin-start: 11px">
+<li style="font-size: 2.5rem">Simple plain list item</li>
+<li style="font-size: 2.5rem"></li>
+<li style="font-size: 2.5rem"><img></img></li>
+<li style="font-size: 2.5rem"><form><input type="text"></input></form></li>
+</ul>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698