Skip to content

Commit

Permalink
Implement the ::file-chooser-button pseudo-element.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
emilio authored and moz-wptsync-bot committed May 25, 2020
1 parent 7e024a2 commit 1d2ce74
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions css/css-pseudo/file-chooser-button-001-notref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!doctype html>
<title>CSS Test Reference</title>
<input type="file">
11 changes: 11 additions & 0 deletions css/css-pseudo/file-chooser-button-001.tentative.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!doctype html>
<title>::file-chooser-button allows to customize the button in &lt;input type=file&gt;</title>
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5049">
<link rel="mismatch" href="file-chooser-button-001-notref.html">
<style>
input::file-chooser-button {
background: green;
color: white;
}
</style>
<input type="file">

0 comments on commit 1d2ce74

Please sign in to comment.