Skip to content

Commit b7d40bf

Browse files
emiliomoz-wptsync-bot
authored andcommitted
Bug 1682181 [wpt PR 26878] - [css-pseudo] Implement the file-selector-button pseudo., a=testonly
Automatic update from web-platform-tests [css-pseudo] Implement the file-selector-button pseudo. I2S: https://groups.google.com/a/chromium.org/g/blink-dev/c/d4UdwpPDXJM/m/J-o_C_kqAwAJ Fixed: 1086855 Change-Id: Ib37d2d8bf4a983ce93445ca0efdf765d3f98935f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2584810 Commit-Queue: Emilio Cobos Álvarez <emilio@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Auto-Submit: Emilio Cobos Álvarez <emilio@chromium.org> Cr-Commit-Position: refs/heads/master@{#837061} -- wpt-commits: d2a0913bd19af2c32af035e1594400822232facd wpt-pr: 26878
1 parent 4e54554 commit b7d40bf

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!doctype html>
2+
<title>::file-selector-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="help" href="https://drafts.csswg.org/css-pseudo/#file-selector-button-pseudo">
5+
<link rel="mismatch" href="file-selector-button-001-notref.html">
6+
<style>
7+
#host::part(file-input)::file-selector-button {
8+
border: 1px solid green;
9+
}
10+
</style>
11+
<div id="host"></div>
12+
<script>
13+
document.getElementById("host").attachShadow({ mode: "open" }).innerHTML = `
14+
<input type=file part=file-input>
15+
`;
16+
</script>

0 commit comments

Comments
 (0)