Skip to content

Commit e18ee88

Browse files
emiliomoz-wptsync-bot
authored andcommitted
Fix text input rendering with text-indent.
Don't apply text-indent to the outer input frame, since all the inner frames also apply it. This gets the behavior from before my patch and is consistent with other browsers as well. Differential Revision: https://phabricator.services.mozilla.com/D296252 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=2034573 gecko-commit: 3124ce9ce1cf5a9979266ae9f1b75f3a7a46ac26 gecko-commit-git: 91b23e5896df6ab46aaab17fb0ea6afa5323e5c1 gecko-reviewers: layout-reviewers, dholbert
1 parent 1001a14 commit e18ee88

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!doctype html>
2+
<meta charset="utf-8">
3+
<title>CSS Test Reference</title>
4+
<style>
5+
input {
6+
box-sizing: border-box;
7+
width: 150px;
8+
border: 1px solid;
9+
padding: 0;
10+
margin: 0;
11+
padding-inline-start: 10px;
12+
}
13+
</style>
14+
<input placeholder="XXX"><br>
15+
<input value="XXX">
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!doctype html>
2+
<meta charset="utf-8">
3+
<title>Input rendering with text-indent</title>
4+
<link rel="help" href="https://bugzil.la/2034573">
5+
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
6+
<link rel="author" href="https://mozilla.com" title="Mozilla">
7+
<link rel="match" href="input-text-indent-ref.html">
8+
<style>
9+
input {
10+
box-sizing: border-box;
11+
width: 150px;
12+
border: 1px solid;
13+
padding: 0;
14+
margin: 0;
15+
text-indent: 10px;
16+
}
17+
</style>
18+
<input placeholder="XXX"><br>
19+
<input value="XXX">

0 commit comments

Comments
 (0)