w3c/csswg-drafts
Vedi su GitHub[cssom-view] API for final dimension / position of object-fit items
Open
#1779 aperta il 5 set 2017
Help Wantedcssom-view-1
Metriche repository
- Star
- (3546 star)
- Metriche merge PR
- (Merge medio 87g 7h) (24 PR mergiate in 30 g)
Descrizione
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?