-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make <input type=button> magic clip not magic.
This implements the proposal in: whatwg/html#9976 MANUAL PUSH: see bug 1871425 Differential Revision: https://phabricator.services.mozilla.com/D195419 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1800077 gecko-commit: 6a14f603289807a62753cc8ceaa35d9ba09cbf61 gecko-reviewers: jwatt, zcorpan
- Loading branch information
1 parent
5a0a131
commit 412c23b
Showing
3 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
html/rendering/widgets/button-layout/input-type-button-clip-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!doctype html> | ||
<style> | ||
button { | ||
width: 10ch; | ||
overflow: clip; | ||
text-overflow: ellipsis; | ||
} | ||
</style> | ||
<button>aaaaaaaaaaaaaaaaaaaaaa</button> |
15 changes: 15 additions & 0 deletions
15
html/rendering/widgets/button-layout/input-type-button-clip.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<title>button input is clipped by default, and text-overflow: ellipsis works</title> | ||
<link rel="help" href="https://github.com/whatwg/html/issues/9976"> | ||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1800077"> | ||
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> | ||
<link rel="author" title="Mozilla" href="https://mozilla.org"> | ||
<link rel="match" href="input-type-button-clip-ref.html"> | ||
<style> | ||
input { | ||
width: 10ch; | ||
text-overflow: ellipsis; | ||
} | ||
</style> | ||
<input type="button" value="aaaaaaaaaaaaaaaaaaaaaa"> |