Skip to content

Commit 263d940

Browse files
emiliofantasai
authored andcommitted
[css-pseudo] Add text for the ::file-selector-button pseudo-element.
Closes #5049
1 parent 3a1cde9 commit 263d940

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

css-pseudo-4/Overview.bs

+16
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,22 @@ Placeholder Input: the ''::placeholder'' pseudo-element</h3>
891891
It's not clear how this should work, but it may be worth doing.
892892
See <a href="https://github.com/w3c/csswg-drafts/issues/2517">Issue 2417</a>.
893893

894+
<h3 id="file-selector-button-pseudo">
895+
File Selector Button: the ''::file-selector-button'' pseudo-element</h3>
896+
897+
The <dfn>::file-selector-button</dfn> pseudo-element targets the ''&lt;button>''
898+
inside an ''&lt;input>'' element with <code>type=file</code>, if the UA
899+
renders such a button.
900+
901+
There is no restriction on which properties apply to the
902+
''::file-selector-button'' pseudo-element.
903+
904+
<div class="example" id="file-selector-button-example">
905+
For example, the following example should show a green border around the
906+
file selector button:
907+
908+
<pre>::file-selector-button { border: 3px solid green }</pre>
909+
</div>
894910

895911
<h2 id="interactions">
896912
Overlapping Pseudo-element Interactions</h2>

0 commit comments

Comments
 (0)