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

createImageBitmap: stop clipping sourceRect to the source's dimensions #6346

Merged
merged 1 commit into from
Feb 4, 2021

Conversation

Kaiido
Copy link
Member

@Kaiido Kaiido commented Jan 31, 2021

Currently the specs ask that when a ImageBitmap is created, its source rectangle should get clipped to the source image's dimensions.
It has been found in #6306 that this was an oversight at the time of its introduction.
Current behavior goes against web-authors expectations and no implementer has opposed against the change to "no-clip".

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


/imagebitmap-and-animations.html ( diff )

It has been found in whatwg#6306 that this was an oversight at the time of its introduction.
Current behavior goes against web-authors expectations and no implementers has opposed against the change to "no-clip".
@annevk
Copy link
Member

annevk commented Feb 1, 2021

@whatwg/canvas could you please review this PR and the linked tests. Thanks!

Copy link

@kdashg kdashg left a comment

Choose a reason for hiding this comment

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

I believe this is a no-op for Firefox one we revert the spec here.

Copy link
Member

@kenrussell kenrussell left a comment

Choose a reason for hiding this comment

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

Hopefully this won't introduce too much complexity in implementations, because of the need to produce transparent pixels for the region outside of input, but I understand the application-level concerns. Looks good to me.

@annevk
Copy link
Member

annevk commented Feb 3, 2021

@kenrussell @jdashg could you review web-platform-tests/wpt#27040 as well?

@kdashg
Copy link

kdashg commented Feb 4, 2021

Neither Ken nor I have write access, so our Approvals are treated as unofficial. It looks like we either need Approval from someone with existing write access, or we need to get added somehow.

annevk pushed a commit to web-platform-tests/wpt that referenced this pull request Feb 4, 2021
@annevk annevk merged commit b43cdf4 into whatwg:main Feb 4, 2021
@annevk
Copy link
Member

annevk commented Feb 4, 2021

Thanks everyone!

(@jdashg yeah, the editors/maintainers (of which I'm one) sometimes delegate review to ensure all is in order with the technical change, and then only review editorial matters and ensure https://whatwg.org/working-mode#changes is followed.)

moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Feb 9, 2021
…ing, a=testonly

Automatic update from web-platform-tests
HTML: createImageBitmap() for out of bound clipping

For whatwg/html#6346.
--

wpt-commits: f480960da2cb3cc827f6fe4ac629b6dd229b0fea
wpt-pr: 27040
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Feb 10, 2021
…ing, a=testonly

Automatic update from web-platform-tests
HTML: createImageBitmap() for out of bound clipping

For whatwg/html#6346.
--

wpt-commits: f480960da2cb3cc827f6fe4ac629b6dd229b0fea
wpt-pr: 27040

UltraBlame original commit: 10a1015aa806f8b426d358d9f4546a2240b6b8ee
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Feb 10, 2021
…ing, a=testonly

Automatic update from web-platform-tests
HTML: createImageBitmap() for out of bound clipping

For whatwg/html#6346.
--

wpt-commits: f480960da2cb3cc827f6fe4ac629b6dd229b0fea
wpt-pr: 27040

UltraBlame original commit: 10a1015aa806f8b426d358d9f4546a2240b6b8ee
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Feb 10, 2021
…ing, a=testonly

Automatic update from web-platform-tests
HTML: createImageBitmap() for out of bound clipping

For whatwg/html#6346.
--

wpt-commits: f480960da2cb3cc827f6fe4ac629b6dd229b0fea
wpt-pr: 27040

UltraBlame original commit: 10a1015aa806f8b426d358d9f4546a2240b6b8ee
jamienicol pushed a commit to jamienicol/gecko that referenced this pull request Feb 11, 2021
…ing, a=testonly

Automatic update from web-platform-tests
HTML: createImageBitmap() for out of bound clipping

For whatwg/html#6346.
--

wpt-commits: f480960da2cb3cc827f6fe4ac629b6dd229b0fea
wpt-pr: 27040
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants