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

Make all input elements display: inline-block by default #4840

Merged
merged 1 commit into from
Sep 16, 2021

Conversation

zcorpan
Copy link
Member

@zcorpan zcorpan commented Aug 14, 2019

Fixes #4082

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


/infrastructure.html ( diff )
/rendering.html ( diff )

@zcorpan zcorpan added the do not merge yet Pull request must not be merged per rationale in comment label Aug 14, 2019
zcorpan added a commit to web-platform-tests/wpt that referenced this pull request Nov 7, 2019
zcorpan added a commit to web-platform-tests/wpt that referenced this pull request Nov 8, 2019
This test does not follow any spec yet.
Instead it expects all `input` types to be scrollable
and fire a `scroll` event in response to `scrollTo()`,
to more clearly demonstrate which elements do this in
browsers currently.

Variants tested:

* overflow: visible / hidden / scroll
* appearance: auto / none

See whatwg/html#4840
zcorpan added a commit to web-platform-tests/wpt that referenced this pull request Nov 18, 2019
zcorpan added a commit to web-platform-tests/wpt that referenced this pull request Nov 18, 2019
@zcorpan zcorpan marked this pull request as ready for review November 18, 2019 23:13
@zcorpan zcorpan added topic: forms topic: rendering and removed do not merge yet Pull request must not be merged per rationale in comment labels Nov 18, 2019
zcorpan added a commit to web-platform-tests/wpt that referenced this pull request Nov 19, 2019
@zcorpan
Copy link
Member Author

zcorpan commented Nov 19, 2019

I think this is ready for review; it should address #4082 and some issues raised in comments there.

@zcorpan
Copy link
Member Author

zcorpan commented Jan 18, 2020

Ping. This change is ready -- it has tests and bugs filed.

Who are appropriate people to review this change and the tests?

@domenic
Copy link
Member

domenic commented Jan 27, 2020

@mfreed7 might be another good person for this.

zcorpan added a commit to web-platform-tests/wpt that referenced this pull request Jan 28, 2020
zcorpan added a commit to web-platform-tests/wpt that referenced this pull request Feb 3, 2020
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Feb 11, 2020
…ment's baseline alignment, a=testonly

Automatic update from web-platform-tests
HTML: Add a tentative test for input element's baseline alignment

See
whatwg/html#5065
whatwg/html#4840
--

wpt-commits: d472ae32e215c33d1a85eade6bfd8130c4caf491
wpt-pr: 20306
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Feb 12, 2020
…ment's baseline alignment, a=testonly

Automatic update from web-platform-tests
HTML: Add a tentative test for input element's baseline alignment

See
whatwg/html#5065
whatwg/html#4840
--

wpt-commits: d472ae32e215c33d1a85eade6bfd8130c4caf491
wpt-pr: 20306

UltraBlame original commit: ee1c56806ccb2576b1110ab46799ae9a8ff2baf3
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Feb 12, 2020
…ment's baseline alignment, a=testonly

Automatic update from web-platform-tests
HTML: Add a tentative test for input element's baseline alignment

See
whatwg/html#5065
whatwg/html#4840
--

wpt-commits: d472ae32e215c33d1a85eade6bfd8130c4caf491
wpt-pr: 20306

UltraBlame original commit: ee1c56806ccb2576b1110ab46799ae9a8ff2baf3
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Feb 12, 2020
…ment's baseline alignment, a=testonly

Automatic update from web-platform-tests
HTML: Add a tentative test for input element's baseline alignment

See
whatwg/html#5065
whatwg/html#4840
--

wpt-commits: d472ae32e215c33d1a85eade6bfd8130c4caf491
wpt-pr: 20306

UltraBlame original commit: ee1c56806ccb2576b1110ab46799ae9a8ff2baf3
xeonchen pushed a commit to xeonchen/gecko that referenced this pull request Feb 12, 2020
…ment's baseline alignment, a=testonly

Automatic update from web-platform-tests
HTML: Add a tentative test for input element's baseline alignment

See
whatwg/html#5065
whatwg/html#4840
--

wpt-commits: d472ae32e215c33d1a85eade6bfd8130c4caf491
wpt-pr: 20306
@josepharhar
Copy link
Contributor

I'm working on a fix for this in chrome.
In the diff for this pr, I see that there are special cases for certain types of inputs removed, but it doesn't completely match up with what I changed in chrome.

In this pr it lists reset, button, submit, and color, but in my change for chrome (as per this bug) it changes date, datetime-local, week, time, and month...

Base automatically changed from master to main January 15, 2021 07:57
@zcorpan
Copy link
Member Author

zcorpan commented Sep 16, 2021

@josepharhar apologies for the delay.

As far as I can tell, this PR and your change match. All input elements should be inline-block. https://github.com/whatwg/html/pull/4840/files#diff-41cf6794ba4200b839c53531555f0f3998df4cbb01a4d5cb0b94e3ca5e23947dL116936 is a removed line.

Edit: if you mean that the change for the spec and the change for Chromium aren't the same, that would be because Chromium didn't match the spec before. We only need to be concerned about them being the same afterwards. :)

Part of #4082

Force inner display type to flow-root and ignore overflow

drop-down select is display: inline-block

Require text inputs to be scroll containers

And only support scrolling in the inline axis.

This should address the third bullet point in
#4082 (comment)
@zcorpan zcorpan force-pushed the zcorpan/form-controls-display branch from 98deb7d to 553a52e Compare September 16, 2021 11:10
zcorpan added a commit to web-platform-tests/wpt that referenced this pull request Sep 16, 2021
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

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

Editorially LGTM. I don't really understand all the changes outside of the UA stylesheet, but I trust @josepharhar's assessment and it seems like there's a really comprehensive list of tests and bugs, so I'm happy for this to be merged whenever @zcorpan thinks it and its tests are ready.

zcorpan added a commit to web-platform-tests/wpt that referenced this pull request Sep 16, 2021
@zcorpan
Copy link
Member Author

zcorpan commented Sep 16, 2021

I think this is as ready as it will be, so I'm also happy to have it merged.

One referenced test PR is not yet reviewed, but it's tracked in issue #5099, so doesn't need to block this.

@zcorpan zcorpan merged commit 6aa8e42 into main Sep 16, 2021
@zcorpan zcorpan deleted the zcorpan/form-controls-display branch September 16, 2021 21:13
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Oct 3, 2021
…le for form controls, a=testonly

Automatic update from web-platform-tests
HTML: test display and box-sizing UA style for form controls

Follows whatwg/html#4840

Remove redundant test

--

wpt-commits: ababf6cd0ffc3ba417c29e09ae942b319538b07c
wpt-pr: 20148
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Oct 4, 2021
…le for form controls, a=testonly

Automatic update from web-platform-tests
HTML: test display and box-sizing UA style for form controls

Follows whatwg/html#4840

Remove redundant test

--

wpt-commits: ababf6cd0ffc3ba417c29e09ae942b319538b07c
wpt-pr: 20148
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Oct 4, 2021
…le for form controls, a=testonly

Automatic update from web-platform-tests
HTML: test display and box-sizing UA style for form controls

Follows whatwg/html#4840

Remove redundant test

--

wpt-commits: ababf6cd0ffc3ba417c29e09ae942b319538b07c
wpt-pr: 20148
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Oct 6, 2021
…le for form controls, a=testonly

Automatic update from web-platform-tests
HTML: test display and box-sizing UA style for form controls

Follows whatwg/html#4840

Remove redundant test

--

wpt-commits: ababf6cd0ffc3ba417c29e09ae942b319538b07c
wpt-pr: 20148
Gabisampaio pushed a commit to Gabisampaio/wpt that referenced this pull request Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Default 'display' value for form controls
3 participants