-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Test how line-height works on <input type=text> and friends #32684
Conversation
I think the test expectations are wrong here, as discussed in https://bugzilla.mozilla.org/show_bug.cgi?id=1753537#c3 . getComputedStyle returns the "resolved value", which is usually the computed value but is instead the used value in some cases, as discussed at https://drafts.csswg.org/cssom/#resolved-values . And So: if the test is using |
@dholbert thanks, you're correct. I'll fix the test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just a few suggestions (the first of which is actually a suggestion for whatwg/html@c6440d4 to make it better-match these tests).
html/rendering/non-replaced-elements/form-controls/input-line-height-computed.html
Outdated
Show resolved
Hide resolved
html/rendering/non-replaced-elements/form-controls/input-line-height-computed.html
Outdated
Show resolved
Hide resolved
html/rendering/non-replaced-elements/form-controls/input-line-height-computed.html
Show resolved
Hide resolved
@dholbert thanks, clarified the spec in whatwg/html@40c9c5e I also changed the test names to describe the expectations. |
bf6cd39
to
d233771
Compare
d233771
to
eb82acf
Compare
FWIW I didn't mean to request a spec-clarification along those lines -- I don't think that spec-clarification (saying 'normal' is not supposed to be there in the used value) was strictly necessary, since normal So It's fine with the clarification, but if you end up doing further wordsmithing here later on and feel like removing that spec-clarification, I won't object. :) |
See whatwg/html#5462