-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Update file upload control rendering to require a real button element #11257
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138789,10 +138789,10 @@ details[open] > summary:first-of-type { | |
the <span data-x="attr-input-type-file">File Upload</span> state, when it generates a <span>CSS | ||
box</span>, is expected to render as an <span>'inline-block'</span> box containing a span of text | ||
giving the filename(s) of the <span data-x="concept-input-type-file-selected">selected | ||
files</span>, if any, followed by a button that, when activated, provides the user with a file | ||
picker from which the selection can be changed. The button is expected to use <span>button | ||
layout</span> and match the <span>'::file-selector-button'</span> pseudo-element. The contents of | ||
its <span>anonymous button content box</span> are expected to be | ||
files</span>, if any, followed by a <code>button</code> element that, when activated, provides the | ||
user with a file picker from which the selection can be changed. The button is expected to use | ||
<span>button layout</span> and match the <span>'::file-selector-button'</span> pseudo-element. The | ||
contents of its <span>anonymous button content box</span> are expected to be | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure if we should still say "anonymous button content box" if we are explicitly saying that its a button element There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I'm not sure about the button layout bit either. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @zcorpan can probably help us out here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://html.spec.whatwg.org/#the-button-element-2 already requires |
||
<span>implementation-defined</span> (and possibly locale-specific) text, for example "Choose | ||
file".</p> | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.