[mediacapture-region] CropTarget and cropTo algorithms should be based on existing HTML/CSS definitions (#20)

youennf has just created a new issue for https://github.com/w3c/mediacapture-region:

== CropTarget and cropTo algorithms should be based on existing HTML/CSS definitions ==
The spec is stating:
```The user agent MUST start cropping [this](https://webidl.spec.whatwg.org/#this) video track to the contours of the element referenced by this [CropTarget](https://w3c.github.io/mediacapture-region/#dom-croptarget).```

The contours of the element is not a well defined term. We should be able to reference either CSS or HTML spec to provide a more precise definition. One possibility would be to refer to https://drafts.csswg.org/cssom-view/#dom-element-getboundingclientrect.
Or refer to https://drafts.csswg.org/cssom-view/#layout-box.
Something like:
```The user agent MUST start cropping [this](https://webidl.spec.whatwg.org/#this) video track to the [layout box](...) of the element referenced by this [CropTarget](https://w3c.github.io/mediacapture-region/#dom-croptarget).```

Please view or discuss this issue at https://github.com/w3c/mediacapture-region/issues/20 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 4 February 2022 09:14:59 UTC