Skip to content

Commit 1d2ce74

Browse files
emiliomoz-wptsync-bot
authored andcommitted
Implement the ::file-chooser-button pseudo-element.
As per w3c/csswg-drafts#5049. Don't enable it unconditionally just yet, as the name may change. I had to move some rules in forms.css because otherwise you get specificity conflicts. Differential Revision: https://phabricator.services.mozilla.com/D76214 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1635675 gecko-commit: ff6c38ffa425135c02cd9988d8dfb6f12f63a1b5 gecko-integration-branch: autoland gecko-reviewers: jwatt
1 parent 7e024a2 commit 1d2ce74

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!doctype html>
2+
<title>CSS Test Reference</title>
3+
<input type="file">
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!doctype html>
2+
<title>::file-chooser-button allows to customize the button in &lt;input type=file&gt;</title>
3+
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5049">
4+
<link rel="mismatch" href="file-chooser-button-001-notref.html">
5+
<style>
6+
input::file-chooser-button {
7+
background: green;
8+
color: white;
9+
}
10+
</style>
11+
<input type="file">

0 commit comments

Comments
 (0)