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

Change how minimum used value for line-height works #5462

Merged
merged 3 commits into from
Feb 11, 2022

Conversation

zcorpan
Copy link
Member

@zcorpan zcorpan commented Apr 16, 2020

Fixes #5366.

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


/rendering.html ( diff )

@zcorpan zcorpan added the needs tests Moving the issue forward requires someone to write tests label Apr 16, 2020
@zcorpan
Copy link
Member Author

zcorpan commented Apr 16, 2020

Checking for any opposition -- @smfr @tkent-google

@smfr
Copy link

smfr commented Apr 16, 2020

I don't get why this is in HTML not CSS, but OK.

@zcorpan
Copy link
Member Author

zcorpan commented Apr 17, 2020

@smfr do you think the definition for the 'line-height' property should define this special case?

@tkent-google
Copy link
Contributor

I have no objection.

@annevk
Copy link
Member

annevk commented Apr 20, 2020

Yeah, this would be monkey patching CSS. It should be clear when implementing line-height from the CSS specification that certain elements can enforce this behavior. It would be cleaner to do this through some element flag that HTML sets and CSS reads to enforce this, or some such.

(Edit: to be fair, the status quo had a similar problem, but we should at least file an issue to get this addressed eventually.)

cc @whatwg/css

@zcorpan
Copy link
Member Author

zcorpan commented Apr 20, 2020

Filed w3c/csswg-drafts#4977

Base automatically changed from master to main January 15, 2021 07:57
zcorpan added a commit to web-platform-tests/wpt that referenced this pull request Feb 3, 2022
@zcorpan zcorpan removed the needs tests Moving the issue forward requires someone to write tests label Feb 3, 2022
@zcorpan zcorpan force-pushed the zcorpan/input-minimum-line-height branch from c6440d4 to 59ad1a4 Compare February 3, 2022 23:06
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.

LGTM!

@zcorpan
Copy link
Member Author

zcorpan commented Feb 3, 2022

This should apply to password as well

@zcorpan
Copy link
Member Author

zcorpan commented Feb 3, 2022

Fixed. Browser bugs filed also.

source Outdated Show resolved Hide resolved
zcorpan added a commit to web-platform-tests/wpt that referenced this pull request Feb 10, 2022
zcorpan added a commit to web-platform-tests/wpt that referenced this pull request Feb 10, 2022
zcorpan added a commit to web-platform-tests/wpt that referenced this pull request Feb 10, 2022
@zcorpan zcorpan merged commit f42376d into main Feb 11, 2022
@zcorpan zcorpan deleted the zcorpan/input-minimum-line-height branch February 11, 2022 00:04
mattwoodrow pushed a commit to mattwoodrow/wpt that referenced this pull request Feb 15, 2022
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Feb 26, 2022
…e=text> and friends, a=testonly

Automatic update from web-platform-tests
Test how line-height works on <input type=text> and friends

See whatwg/html#5462
--

wpt-commits: ac55bfa0f0acb4155db0ac0b4e3245d10b03c48e
wpt-pr: 32684
DanielRyanSmith pushed a commit to DanielRyanSmith/wpt that referenced this pull request Feb 28, 2022
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Mar 1, 2022
…e=text> and friends, a=testonly

Automatic update from web-platform-tests
Test how line-height works on <input type=text> and friends

See whatwg/html#5462
--

wpt-commits: ac55bfa0f0acb4155db0ac0b4e3245d10b03c48e
wpt-pr: 32684
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Mar 8, 2022
…e=text> and friends, a=testonly

Automatic update from web-platform-tests
Test how line-height works on <input type=text> and friends

See whatwg/html#5462
--

wpt-commits: ac55bfa0f0acb4155db0ac0b4e3245d10b03c48e
wpt-pr: 32684
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Mar 8, 2022
…e=text> and friends, a=testonly

Automatic update from web-platform-tests
Test how line-height works on <input type=text> and friends

See whatwg/html#5462
--

wpt-commits: ac55bfa0f0acb4155db0ac0b4e3245d10b03c48e
wpt-pr: 32684
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Minimum used line-height of text-entry widget doesn't match implementations
5 participants