-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Use correct properties for progress element #8471
Use correct properties for progress element #8471
Conversation
Can you restore the pull request template, including implementer interest, tests, and browser bugs? |
Thanks, I wrongly assumed this was just an editorial change. Please let me know if it is missing anything. |
I think non-manual tests should be possible here. I can think of a few ideas:
I agree that because of the clause you linked about native appearance, these tests would be |
Thanks for your recommendations, I just changed the WPT tests in web-platform-tests/wpt#36659 to be |
If possible, yes! |
Added the new test const style = getComputedStyle(progress);
assert_equals(style.blockSize, "16px");
assert_equals(style.inlineSize, "160px");
assert_equals(style.blockSize, style.height);
assert_equals(style.inlineSize, style.width); Edit: I merged the CL in chromium since it is experimental and the WPT tests are all optional. If more feedback, I am happy to add more patches. |
ff68b71
to
506d9d6
Compare
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.
LGTM! I will follow up internally with how to get the participation check to pass, and then we can merge.
All merged! Please remember to file a bug on bugs.webkit.org pointing to this PR and to the new tests, and edit the original post to include a link to it. |
In Progress Element's description of how to render native appearance [1], we should use
block-size: 1em
instead ofheight: 1em
andinline-size: 10em
instead ofwidth: 10em
. This change will not affect existing behavior for horizontal writing mode (the specced behavior).(See WHATWG Working Mode: Changes for more details.)
The choice to support writing-mode is left to the UA [2]. Blink would like to enable writing-mode vertical for control forms, including the Progress element. The changes proposed in this PR will be correct for both writing mode vertical and horizontal. For more implementation details, see chromium CL [3].
[1] https://html.spec.whatwg.org/multipage/rendering.html#the-progress-element-2
[2] https://drafts.csswg.org/css-ui-4/#appearance-switching:~:text=User%20agents%20may%20disregard%20some%20CSS%20properties%20on%20widgets%20rendered
[3] https://chromium-review.googlesource.com/c/chromium/src/+/3979781
/rendering.html ( diff )