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

Issue 728062 link

Starred by 23 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Aug 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Feature



Sign in to add a comment

DevTools: Add CSS grid highlighter

Reported by bojc.to...@gmail.com, May 31 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7

Steps to reproduce the problem:
1. on HTML element declare `display: grid`, declare `grid-template-columns` and `grid-template-rows`
2. look up this element in web inspector > Styles
3. you have no visualization of the grid

What is the expected behavior?
We have visualization of the box model. I also would like to see implementation of CSS grid highlighter as it is implemented in Firefox. See attached image.

What went wrong?
There is no visual reference for CSS grid on the page. Design becomes abstract, and it is difficult to debug.

Did this work before? No 

Chrome version: <Copy from: 'about:version'>  Channel: n/a
OS Version: OS X 10.11.6
Flash Version:
 
Screen Shot 2017-05-30 at 21.48.27.png
66.6 KB View Download
Labels: -Type-Bug Type-Feature
Status: Untriaged (was: Unconfirmed)
Summary: Add CSS grid highlighter (was: Implement new feature: CSS grid highlighter)
Owner: pfeldman@chromium.org
Status: Assigned (was: Untriaged)
Summary: DevTools: Add CSS grid highlighter (was: Add CSS grid highlighter)
Owner: eostroukhov@chromium.org
Current plan is to show cells when element with "display: grid" is highlighted in WebInspector (e.g. by hovering over it in Element pane). See the screenshot attached.
grid-highlight.png
6.8 KB View Download
Project Member

Comment 6 by bugdroid1@chromium.org, Aug 15 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/054863615baeab6db7b49f094b56079252bc0a2f

commit 054863615baeab6db7b49f094b56079252bc0a2f
Author: Eugene Ostroukhov <eostroukhov@chromium.org>
Date: Tue Aug 15 01:54:30 2017

[DevTools] Implement CSS grid highlight

Currently this highlight is behind the experiment flag.

Bug:  728062 
Change-Id: Ic005372520431019d2b9e7f3ffbc3e3f311390ba
Reviewed-on: https://chromium-review.googlesource.com/611323
Commit-Queue: Eugene Ostroukhov <eostroukhov@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#494300}
[add] https://crrev.com/054863615baeab6db7b49f094b56079252bc0a2f/third_party/WebKit/LayoutTests/inspector/elements/highlight/highlight-css-grid-expected.txt
[add] https://crrev.com/054863615baeab6db7b49f094b56079252bc0a2f/third_party/WebKit/LayoutTests/inspector/elements/highlight/highlight-css-grid.html
[modify] https://crrev.com/054863615baeab6db7b49f094b56079252bc0a2f/third_party/WebKit/Source/core/inspector/InspectorHighlight.cpp
[modify] https://crrev.com/054863615baeab6db7b49f094b56079252bc0a2f/third_party/WebKit/Source/core/inspector/InspectorHighlight.h
[modify] https://crrev.com/054863615baeab6db7b49f094b56079252bc0a2f/third_party/WebKit/Source/core/inspector/InspectorOverlayAgent.cpp
[modify] https://crrev.com/054863615baeab6db7b49f094b56079252bc0a2f/third_party/WebKit/Source/core/inspector/InspectorOverlayPage.html
[modify] https://crrev.com/054863615baeab6db7b49f094b56079252bc0a2f/third_party/WebKit/Source/core/inspector/browser_protocol.json
[modify] https://crrev.com/054863615baeab6db7b49f094b56079252bc0a2f/third_party/WebKit/Source/core/layout/LayoutGrid.h
[modify] https://crrev.com/054863615baeab6db7b49f094b56079252bc0a2f/third_party/WebKit/Source/devtools/front_end/common/Color.js
[modify] https://crrev.com/054863615baeab6db7b49f094b56079252bc0a2f/third_party/WebKit/Source/devtools/front_end/main/Main.js
[modify] https://crrev.com/054863615baeab6db7b49f094b56079252bc0a2f/third_party/WebKit/Source/devtools/front_end/sdk/OverlayModel.js

Status: Fixed (was: Assigned)

Comment 8 by to...@digiverse.si, Aug 16 2017

Is this already shipped? In Chrome Version 60.0.3112.101 I can not find this feature under chrome://flags/


It is present in 62.0.3187.0, Canary branch

Comment 10 by to...@digiverse.si, Aug 16 2017

Thanks, works. Will test and provide feedback.

Comment 11 by kayce@google.com, Aug 28 2017

Labels: DevTools-Release-Notes-62

Comment 12 by piot...@gmail.com, Sep 1 2017

Thanks so much for this new feature! Works great so far and very useful. 

Forgive the n00b question: should I provide bug feedback here on this thread or someplace else? 

Thanks!
#12 - the issue tracker is the right place to file issues, bugs and feature requests. Click on the "New issue" button above, though, rather than adding bugs as comments to existing issues.

Sign in to add a comment