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

[Gecko Bug 1700640] Map width and height to aspect-ratio in <canvas>, <input type=image>, and <video>. #28229

Merged
merged 1 commit into from Mar 26, 2021

Conversation

moz-wptsync-bot
Copy link
Collaborator

As per https://html.spec.whatwg.org/#attributes-for-embedded-content-and-images:

The width and height attributes map to the aspect-ratio property on
img, canvas, and video elements, and input elements with a type
attribute in the Image Button state.

See whatwg/html#6527 for the parsing issue
with canvas and zero. For now allow both behaviors in the tests.

We also remove the width-and-height-map-to-aspect-ratio pref, as it is
true everywhere and has been for a while.

Differential Revision: https://phabricator.services.mozilla.com/D109618

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1700640
gecko-commit: 985b66b916980b78328063dfdccdc5e5b71318e5
gecko-reviewers: boris

… and <video>.

As per https://html.spec.whatwg.org/#attributes-for-embedded-content-and-images:

> The width and height attributes map to the aspect-ratio property on
> img, canvas, and video elements, and input elements with a type
> attribute in the Image Button state.

See whatwg/html#6527 for the parsing issue
with canvas and zero. For now allow both behaviors in the tests.

We also remove the width-and-height-map-to-aspect-ratio pref, as it is
true everywhere and has been for a while.

Differential Revision: https://phabricator.services.mozilla.com/D109618

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1700640
gecko-commit: 985b66b916980b78328063dfdccdc5e5b71318e5
gecko-reviewers: boris
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Firefox project.

annevk added a commit to whatwg/html that referenced this pull request Mar 25, 2021
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.
@foolip
Copy link
Member

foolip commented Mar 25, 2021

The wpt-chrome-dev-* CI failures here were likely due to #19360. A workaround was landed in #28238, so I'm closing and reopening to re-trigger the CI checks.

@foolip foolip closed this Mar 25, 2021
@foolip foolip reopened this Mar 25, 2021
@moz-wptsync-bot moz-wptsync-bot merged commit 1bf1089 into master Mar 26, 2021
@moz-wptsync-bot moz-wptsync-bot deleted the gecko/1700640 branch March 26, 2021 01:10
annevk added a commit to whatwg/html that referenced this pull request May 12, 2021
Also map <canvas width height> to aspect-ratio consistently with how the attributes are parsed and clean up some wording.

Tests: web-platform-tests/wpt#28229 & web-platform-tests/wpt#28932.

Follow-up: #6528.

Closes #4961 and closes #6527.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants