Skip to content
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

Add ::file-selector-button to the UA stylesheet #6447

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zcorpan
Copy link
Member

@zcorpan zcorpan commented Mar 4, 2021

As per w3c/csswg-drafts#5788 (comment)

This wasn't covered in #6250 by @emilio but is implemented in Gecko: https://phabricator.services.mozilla.com/D88995#change-Qm2jIAAP02Sm

  • At least two implementers are interested (and none opposed):
  • Tests are written and can be reviewed and commented upon at:
    • TODO
  • Implementation bugs are filed:
    • Chrome: …
    • Firefox: …
    • Safari: …

(See WHATWG Working Mode: Changes for more details.)


/rendering.html ( diff )

@annevk annevk requested a review from emilio March 4, 2021 13:49
Copy link
Contributor

@emilio emilio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a follow-up (or here) we should also have something like this:

::file-selector-button {
  font-size: unset;
}

At least that part matches all browsers:

data:text/html,<input type=file style="font-size: 5px">

In Gecko we also unset other things, not sure what Blink / WebKit do.

source Outdated Show resolved Hide resolved
@annevk annevk added needs tests Moving the issue forward requires someone to write tests topic: forms topic: rendering labels Mar 4, 2021
@zcorpan
Copy link
Member Author

zcorpan commented Mar 4, 2021

@emilio filed #6452 for adding new styles, should probably be fixed as a follow-up.

moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Mar 5, 2021
…tentative.html. r=mstange

The file button inherits the font-size of the file input, so that needs fixing.

Related HTML spec PR: whatwg/html#6447

The checkbox baseline was also the other thing that was wrong, and that allows
us to remove the sketchy allowedDelta.

Differential Revision: https://phabricator.services.mozilla.com/D107230
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Mar 8, 2021
…tentative.html. r=mstange

The file button inherits the font-size of the file input, so that needs fixing.

Related HTML spec PR: whatwg/html#6447

The checkbox baseline was also the other thing that was wrong, and that allows
us to remove the sketchy allowedDelta.

Differential Revision: https://phabricator.services.mozilla.com/D107230
moz-wptsync-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Mar 10, 2021
The file button inherits the font-size of the file input, so that needs fixing.

Related HTML spec PR: whatwg/html#6447

The checkbox baseline was also the other thing that was wrong, and that allows
us to remove the sketchy allowedDelta.

Differential Revision: https://phabricator.services.mozilla.com/D107230

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1696437
gecko-commit: c45afb640afd776a36a4ec19fe31c49269f31642
gecko-reviewers: mstange
moz-wptsync-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Mar 10, 2021
The file button inherits the font-size of the file input, so that needs fixing.

Related HTML spec PR: whatwg/html#6447

The checkbox baseline was also the other thing that was wrong, and that allows
us to remove the sketchy allowedDelta.

Differential Revision: https://phabricator.services.mozilla.com/D107230

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1696437
gecko-commit: c45afb640afd776a36a4ec19fe31c49269f31642
gecko-reviewers: mstange
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Mar 10, 2021
…tentative.html. r=mstange

The file button inherits the font-size of the file input, so that needs fixing.

Related HTML spec PR: whatwg/html#6447

The checkbox baseline was also the other thing that was wrong, and that allows
us to remove the sketchy allowedDelta.

Differential Revision: https://phabricator.services.mozilla.com/D107230

UltraBlame original commit: c45afb640afd776a36a4ec19fe31c49269f31642
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Mar 10, 2021
…tentative.html. r=mstange

The file button inherits the font-size of the file input, so that needs fixing.

Related HTML spec PR: whatwg/html#6447

The checkbox baseline was also the other thing that was wrong, and that allows
us to remove the sketchy allowedDelta.

Differential Revision: https://phabricator.services.mozilla.com/D107230

UltraBlame original commit: c45afb640afd776a36a4ec19fe31c49269f31642
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Mar 10, 2021
…tentative.html. r=mstange

The file button inherits the font-size of the file input, so that needs fixing.

Related HTML spec PR: whatwg/html#6447

The checkbox baseline was also the other thing that was wrong, and that allows
us to remove the sketchy allowedDelta.

Differential Revision: https://phabricator.services.mozilla.com/D107230

UltraBlame original commit: c45afb640afd776a36a4ec19fe31c49269f31642
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs tests Moving the issue forward requires someone to write tests topic: forms topic: rendering
Development

Successfully merging this pull request may close these issues.

None yet

3 participants