w3c/csswg-drafts

[cssom-view] API for final dimension / position of object-fit items

Open

#1.779 geöffnet am 5. Sept. 2017

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)HTML (545 Forks)batch import
Help Wantedcssom-view-1

Repository-Metriken

Stars
 (3.546 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 87T 7h) (24 gemergte PRs in 30 T)

Beschreibung

As it is now, there is no way to detect the final position and dimension of a object-fit element.

This is particularly problematic for things like canvas, where sometimes mapping mouse coordinates is needed.

Would it be possible for GetComputedStyle to return the top,right,bottom,left of the fit?

Contributor Guide