w3c/csswg-drafts

[cssom-view] elementFromPoint etc need to be defined in terms of layout and visual viewports

Open

#1378 aperta il 15 mag 2017

Vedi su GitHub
 (8 commenti) (0 reazioni) (0 assegnatari)HTML (545 fork)batch import
Help Wantedcssom-view-1

Metriche repository

Star
 (3546 star)
Metriche merge PR
 (Merge medio 87g 7h) (24 PR mergiate in 30 g)

Descrizione

https://www.w3.org/TR/cssom-view-1/#dom-document-elementfrompoint

elementFromPoint(), elementsFromPoint() and caretPositionFromPoint() need to define whether the arguments are relative to the layout or visual viewports. Other "client" coordinates are being defined as being in terms of the layout viewport (e.g. getBoundingClientRects(), getClientRects(), event.clientX/y [citation needed]).

The spec also needs to define whether the clipping to the the viewport uses the layout or visual viewports for clipping.

Guida contributor