w3c/csswg-drafts

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

Open

#1,779 建立於 2017年9月5日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)HTML (545 fork)batch import
Help Wantedcssom-view-1

倉庫指標

Star
 (3,546 star)
PR 合併指標
 (平均合併 87天 7小時) (30 天內合併 24 個 PR)

描述

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?

貢獻者指南