Show offsetParent of fixed position element if it is not the viewport
Categories
(DevTools :: Inspector: Layout, defect, P3)
Tracking
(firefox137 fixed)
Tracking | Status | |
---|---|---|
firefox137 | --- | fixed |
People
(Reporter: jamesnw, Assigned: jamesnw)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Steps to reproduce:
I used the DevTools > Layout > Box Model > Box Model Properties to inspect a fixed position element that was inside of a <DIV> with a style of transform: translate(0,0)
. The transform creates a containing block / offsetParent for the fixed position element that is not the viewport.
Reproduction: https://codepen.io/jamessw/pen/OPJXyYW
<div style="transform: translate(0);">
<div style="position: fixed;">Fixed, but offsetParent is the parent div</div>
</div>
Actual results:
No Offset Parent of the selected element is shown.
Expected results:
The offset parent of the element should have been shown, in the same way as for absolute and relative positioned elements. This will help users understand why a fixed position element is not fixed to the viewport.
Comment 1•23 days ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Assignee | ||
Comment 2•23 days ago
|
||
Shows in DevTools > Layout > Box Model > Box Model Properties.
Updated•23 days ago
|
Updated•19 days ago
|
Updated•18 days ago
|
Comment 4•18 days ago
|
||
bugherder |
Description
•