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: 82df6f70ec60b3b63bca95f2dfe170e336d84c0c
gecko-integration-branch: autoland
gecko-reviewers: jwatt
  • Loading branch information
emilio authored and moz-wptsync-bot committed May 25, 2020
1 parent b577b1f commit 26d0183
Show file tree
Hide file tree
Showing 2 changed files with 13 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">
10 changes: 10 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,10 @@
<!doctype html>
<title>::file-chooser-button allows to customize the button in &lt;input type=file&gt;</title>
<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 26d0183

Please sign in to comment.