"CSS Grid is not in use on this page" displayed even when it is
Categories
(DevTools :: Inspector, defect, P3)
Tracking
(Not tracked)
People
(Reporter: birtles, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(6 files)
| Reporter | ||
Comment 1•7 years ago
|
||
| Reporter | ||
Comment 2•7 years ago
|
||
Updated•7 years ago
|
| Reporter | ||
Comment 3•7 years ago
|
||
| Reporter | ||
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
This bug has not been updated in the last 3 months. Resetting the assignee field.
Please, feel free to pick it up again and add a comment outlining your plans for it if you do still intend to work on it.
This is just trying to clean our backlog of bugs and make bugs available for people.
Updated•3 years ago
|
Comment 7•1 year ago
|
||
I know a ton of work has gone into the devtools' Grid viewer in the Layout tab, but this bug is still present (and annoying as hell) as of 2024-10-31 in Firefox 133.0b2 (64-bit) on macOS. I'd be happy to help others reproduce the issue on their machine, or at least help troubleshoot why this is happening on mine.
Comment 8•1 year ago
|
||
Comment 9•1 year ago
|
||
Also, the devtools.inspector.activeSidebar pref in my profile is set to layoutview, if this helps.
Comment 10•1 year ago
|
||
Here are my profile's gridinspector prefs, if it helps.
Comment 11•1 year ago
|
||
And here are my inspector prefs.
Comment 12•1 year ago
|
||
(In reply to Ryan Sobol [:ryansobol] from comment #7)
I know a ton of work has gone into the devtools' Grid viewer in the Layout tab, but this bug is still present (and annoying as hell) as of 2024-10-31 in Firefox 133.0b2 (64-bit) on macOS. I'd be happy to help others reproduce the issue on their machine, or at least help troubleshoot why this is happening on mine.
Hello Ryan, thanks for your report.
Can you share the page you're seeing this on?
Are you seeing this while doing a specific scenario (adding the display grid declaration from the inspector or the styleeditor, or triggering some other things), or is happen when the page loads? Any detailed step to reproduce would help us diagnose the issue.
Comment 13•1 year ago
|
||
Hello Ryan, thanks for your report.
You're welcome! :)
Can you share the page you're seeing this on?
https://admin-platform-ryansobol.vercel.app/orders
Grid is being used on the <main> tag, as well as on a few tags nested within.
Are you seeing this while doing a specific scenario (adding the display grid declaration from the inspector or the styleeditor, or triggering some other things), or is happen when the page loads?
It's happening on page load.
Comment 14•1 year ago
|
||
Thanks Ryan, I think I found the culprit, the grid container has a display: contents ancestor which seems to cause our function to not detect the grid.
I can reproduce it on this simple page: data:text/html,<meta charset=utf8><style>span { display: grid; } .content { display: contents; } </style></div><div class="content"><span>grid inside a <code>display: contents</code></span></div>
Comment 15•1 year ago
|
||
Ryan, since this is self contained, I filed Bug 1934619, so the discussion is easier to follow than in this bug
Comment 16•1 year ago
|
||
Thanks Ryan, I think I found the culprit, the grid container has a display: contents ancestor which seems to cause our function to not detect the grid
Thanks for tackling this issue and sharing your discovery. Well done!
Comment 17•1 year ago
|
||
This is going to affect developers of every site using SvelteKit currently; that's what bit me today.
Description
•