-
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
Support zero dimension values for aspect-ratio #6529
Conversation
Also map <canvas width height> to aspect-ratio consistently with how the attributes are parsed. Tests: web-platform-tests/wpt#28229. Follow-up: #6528. Closes #4961 and closes #6527.
Ping @cbiesinger @emilio for their subject-expert review; I can do editorial review but I apparently didn't spot previous flaws in this area so your help would be much appreciated to make sure we get it right this time :) |
@cbiesinger @emilio ping. |
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.
I created web-platform-tests/wpt#28932 to update the tests and filed https://bugs.chromium.org/p/chromium/issues/detail?id=1207330 against Chrome. Safari has a lot more failures, despite https://bugs.webkit.org/show_bug.cgi?id=201641 being marked fixed. Is that expected @smfr? (Edit: filed https://bugs.webkit.org/show_bug.cgi?id=225648 meanwhile.) |
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.
Changes LGTM, would be good to clean up the source paragraph while you're there.
That sentence is rather weird. I wish we had made that flow from the |
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.
My impression as to why this sentence is a bit weird is that it's a statement of fact about the normative requirements in the rendering section. Since it's in the source section, it's source-element centric and not super-precise.
@domenic yep. It could technically be removed altogether without changing what the spec requires, and so from that perspective there's flexibility in how to word it. It could also be changed to a note to further signal its non-normative nature. |
…s, a=testonly Automatic update from web-platform-tests HTML: update aspect-ratio rendering tests For whatwg/html#6529. -- wpt-commits: 8d656c56e3fe778ed251a866290529b369ddd939 wpt-pr: 28932
Also map to aspect-ratio consistently with how the attributes are parsed.
Tests: web-platform-tests/wpt#28229.
Follow-up: #6528.
Closes #4961 and closes #6527.
(See WHATWG Working Mode: Changes for more details.)
/canvas.html ( diff )
/embedded-content.html ( diff )
/grouping-content.html ( diff )
/infrastructure.html ( diff )
/interactive-elements.html ( diff )
/media.html ( diff )
/obsolete.html ( diff )
/rendering.html ( diff )