Skip to content

Commit ce173bb

Browse files
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: 1afa0cd0bd32e952553d77f6af516b6f0bfce5c4 gecko-commit-git: e562ea4a57c49fad1c6b26682f47395ec76364b6 gecko-reviewers: layout-reviewers, dholbert
1 parent b6aeb73 commit ce173bb

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

html/rendering/replaced-elements/attributes-for-embedded-content-and-images/input-text-indent-ref.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<!doctype html>
22
<meta charset="utf-8">
33
<title>CSS Test Reference</title>
4+
<link rel="stylesheet" href="/fonts/ahem.css">
45
<style>
56
input {
7+
font: 15px / 1 Ahem;
68
box-sizing: border-box;
79
width: 150px;
810
border: 1px solid;

html/rendering/replaced-elements/attributes-for-embedded-content-and-images/input-text-indent.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
66
<link rel="author" href="https://mozilla.com" title="Mozilla">
77
<link rel="match" href="input-text-indent-ref.html">
8+
<link rel="stylesheet" href="/fonts/ahem.css">
89
<style>
910
input {
11+
font: 15px / 1 Ahem;
1012
box-sizing: border-box;
1113
width: 150px;
1214
border: 1px solid;

0 commit comments

Comments
 (0)