w3c/csswg-drafts

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

Open

#1.779 aberto em 5 de set. de 2017

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)HTML (545 forks)batch import
Help Wantedcssom-view-1

Métricas do repositório

Stars
 (3.546 stars)
Métricas de merge de PR
 (Mesclagem média 87d 7h) (24 fundiu PRs em 30d)

Description

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?

Guia do colaborador