Skip to content

Drawing only part of an element (cropping) #37

@foolip

Description

@foolip

In whatwg/html#11588 @Kaiido asked:

Was it explored whether it should get all the cropping options that drawImage has?

In other words, should we support the 9-argument variant that is explained with an image in https://html.spec.whatwg.org/multipage/canvas.html#drawing-images?

If we do this, we'd also need to support the same remapping in hit test regions.

@Kaiido is there a use case you have in mind, or are you just asking out of curiosity?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions