Open Bug 2076781 Opened 2 months ago Updated 1 month ago

Grid layout / highlighter for grid lanes isn't correct

Categories

(DevTools :: Inspector: Layout, defect, P2)

defect

Tracking

(Not tracked)

People

(Reporter: nchevobbe, Unassigned)

References

(Blocks 1 open bug)

Details

Steps to reproduce

  1. Go to https://microsoftedge.github.io/Demos/css-masonry/new-york.html
  2. Open the inspector
  3. Select the layout panel
  4. Click on the checkbox before the main item

Actual results

The highlighter doesn't seem to show the right number of rows (not even sure it should have some?)
Same for the small layout visualization below the grid display setting

it would be nice if this could surface flow-tolerance too https://drafts.csswg.org/css-grid-3/#placement-tolerance
we could show which items were tied and for a given "tie item", explain why it was placed in the lane it's in

Severity: -- → S3
Priority: -- → P2

(In reply to Nicolas Chevobbe [:nchevobbe][PTO - back October 26] from comment #0)

The highlighter doesn't seem to show the right number of rows (not even sure it should have some?)

Well, this layout doesn't have rows, though the row gaps still need to be shown (between the individual items).

Same for the small layout visualization below the grid display setting

The layout visualization should resemble the highlighter, meaning each cell should reflect the individual size of the item within the page.
And hovering it should highlight the referenced grid item.

Sebastian

(In reply to Sebastian Zartner [:sebo] from comment #2)

The layout visualization should resemble the highlighter, meaning each cell should reflect the individual size of the item within the page.
And hovering it should highlight the referenced grid item.

Thinking more about that, the visualization for normal grids also refers to the grid cells, not the grid items. So maybe it should really just show the columns.
On the other hand, it would be useful to have the option to switch between the the grid cells highlighter and a grid item highlighter... But that's out-of-scope.

Sebastian

You need to log in before you can comment on or make changes to this bug.