New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 707214 link

Starred by 76 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature



Sign in to add a comment

[css-grid] Add CSS Grid Layout support on DevTools

Project Member Reported by r...@igalia.com, Mar 31 2017

Issue description


Firefox has a nice CSS Grid Layout inspector:
https://developer.mozilla.org/en-US/docs/Tools/Page_Inspector/How_to/Examine_grid_layouts

It'd be awesome to have something like that in Chrome too.
 

Comment 1 by e...@chromium.org, Mar 31 2017

Components: -Blink>Layout>Grid
Labels: -Type-Bug Type-Feature
Owner: dgozman@chromium.org
dgozman, what do you think?
Status: Assigned (was: Untriaged)
Looks interesting, but maybe css flex layout support would be even more valuable? Is it widespread?

Comment 4 by yio...@gmail.com, Apr 12 2017

We can consider adding a separate layout panel to debug CSS flexbox or grid.
Firefox-grid.png
123 KB View Download

Comment 5 by r...@igalia.com, Apr 12 2017

Grid Layout has just been hitting the browsers in March (Firefox 52, Chrome 57, Safari 10.1), so it's still on early stages regarding adoption. So yeah Flexbox is much more widespread.

However I'm not sure which kind of things would be shown for flexbox, as flexbox depends a lot on the items. It's not like grid where the container defines a lot of things and the items get placed there. I'm not aware of anything special in Firefox inspector regarding Flexbox. Anyway, probably a different bug for Flexbox should be reported.
Thanks for the points, we'll look into this.
 Issue 715014  has been merged into this issue.
It would be incredibly useful to see this in Chrome. I'm switching to Firefox when doing anything complicated with Grid, and having to advise people that I teach to do the same.

Unlike pretty much every other layout method grid acts on the container, not the child items. Therefore you need to know something about the grid in order to understand the item. In particular around sizing and alignment, which can get quite complicated, there is a lot that DevTools could help with. 

Comment 9 by rchrd...@gmail.com, May 20 2017

I support the addition of this feature as well. Sometimes visualizing the grid that you are trying to create in your mind can be a challenge, and Firefox has shown that overlaying a visual wireframe of your grid is very helpful in understanding your layout. Adding support for flex in this regard would be great as well, albeit with a different abstraction, most likely showcasing the placement, orientation and stretch factors of the spec visually. Not sure what that would look like yet, however.

Comment 10 by danh...@gmail.com, May 23 2017

+1 for a Chrome CSS Grid Layout inspector. 

When debugging or working with CSS Grid Layout, I open Firefox, use their dev tools, and then return to Chrome. It's an incredibly useful tool to help grok the layout of your grid. 

It's actually the first time in forever that I've had to jump to a non-Chrome browser's dev tools. 




Cc: dgozman@chromium.org
Owner: eostroukhov@chromium.org

Comment 12 by ja...@zailab.com, Sep 15 2017

I think in my case where I am trying to get the ball rolling in my team that having a grid-inspector would help speed up adoption.

Comment 13 by ja...@zailab.com, Sep 15 2017

The problem is most developers are accustomed to seeing layout being described in their markup, so when they see a component or layout that has been done with Grid it looks odd to them and it can be hard for people who are new to Grid to understand what is going on by looking at the CSS alone.
james,

basic grid layout highlight will be available in Chrome 62 (it had been available in Canary for some time. I would prefer to close this bug and have new feature requests for more advanced support.
Status: Fixed (was: Assigned)

Sign in to add a comment