Skip to content

[css-pseudo] Add text for the ::file-selector-button pseudo-element. #5788

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions css-pseudo-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,22 @@ Placeholder Input: the ''::placeholder'' pseudo-element</h3>
It's not clear how this should work, but it may be worth doing.
See <a href="https://github.com/w3c/csswg-drafts/issues/2517">Issue 2417</a>.

<h3 id="file-selector-button-pseudo">
File Selector Button: the ''::file-selector-button'' pseudo-element</h3>

The <dfn>::file-selector-button</dfn> pseudo-element targets the ''&lt;button>''
inside an ''&lt;input>'' element with <code>type=file</code>, if the UA
renders such a button.

There is no restriction on which properties apply to the
''::file-selector-button'' pseudo-element.

<div class="example" id="file-selector-button-example">
For example, the following example should show a green border around the
file selector button:

<pre>::file-selector-button { border: 3px solid green }</pre>
</div>

<h2 id="interactions">
Overlapping Pseudo-element Interactions</h2>
Expand Down