Grids in shadow dom are not listed in the "Grid" section
Categories
(DevTools :: Inspector: Layout, defect, P3)
Tracking
(firefox142 verified, firefox143 verified)
People
(Reporter: nchevobbe, Assigned: nchevobbe)
Details
Attachments
(3 files)
Steps to reproduce
- Open the attached
shadow-grid.htmlpage - Open the inspector
- Select the Layout panel
Expected results
There should be an element in the "Grid" section
Actual results
There is none
Updated•2 years ago
|
| Assignee | ||
Comment 1•10 months ago
|
||
| Assignee | ||
Comment 2•10 months ago
•
|
||
It looks like this should be handled in Element::GetElementsWithGrid (https://searchfox.org/mozilla-central/rev/b63f8c50a3398aff80d2a5f185a90dcdba47f419/dom/base/Element.cpp#2127-2154).
Emilio, would it be hard to go through the shadow dom there?
Comment 3•10 months ago
|
||
No, you probably want to use StyleChildrenIterator or FlattenedTreeIterator depending on whether you care about pseudo elements or not.
| Assignee | ||
Comment 4•10 months ago
|
||
Updated•10 months ago
|
| Assignee | ||
Comment 5•10 months ago
|
||
Comment 7•10 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/709374377209
https://hg.mozilla.org/mozilla-central/rev/9f8e2731b18a
Updated•10 months ago
|
Updated•9 months ago
|
Comment 8•9 months ago
|
||
Issue is reproducible on a 2025-07-14 Firefox Nightly build on Windows 10.
Verified as fixed on Firefox Nightly 143.0a1 and Firefox 142.0b4 on Windows 10, Ubuntu 22, macOS 15.
Description
•