Open Bug 957148 Opened 12 years ago Updated 3 years ago

The layout view reports wrong dimensions if CSS transforms are used

Categories

(DevTools :: Inspector, defect, P3)

x86
All
defect

Tracking

(Not tracked)

People

(Reporter: paul, Unassigned)

References

(Blocks 1 open bug)

Details

div { width: 10px; height: 10px; transform: scale(2); } We report a size of 20px. It should be 10px.
So what do we display if a node is transformed in a way that the top, middle and bottom are all different sizes?
(In reply to Michael Ratcliffe [:miker] [:mratcliffe] from comment #1) > So what do we display if a node is transformed in a way that the top, middle > and bottom are all different sizes? Not sure to understand. We're talking about the size of the content. In the comment 0 example, the content size is 10px (even though it's scaled up).
In other words, the numbers within the box model should reflect the computed values for width and height, not the content box' bounding box size. The bounding box size for each box may be displayed additionally, though, on hover. Sebastian
Blocks: 1150496
Summary: The layout view reports wrong dimensions if css transforms are used → The layout view reports wrong dimensions if CSS transforms are used
Yes, the layout view should show the CSS box model and the perceptual sizes of the elements could be displayed additionally.
Priority: -- → P3
QA Contact: developer.tools → cristian.comorasu
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.