Open Bug 1249569 Opened 9 years ago Updated 2 years ago

Filter Computed panel by clicking on values within box model

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: sebo, Unassigned)

References

(Blocks 1 open bug)

Details

User Story

You want to get to know how the values of the box model got computed.
The values shown within the box model should link to the Computed panel and filter the properties there to only show the related value.

This may be done via a context menu or Ctrl + click or something like that.

Example implementation:
Right-clicking the right border within the box model and choosing 'Show computation stack' (the name could probably be better) switches to the Computed side panel, adds a filter so that only 'border-right' (and maybe also 'border-inline-end' resp. 'border-inline-start') is shown and expanded.

Sebastian
Blocks: 1150496
Filter on CLIMBING SHOES
Priority: -- → P3
The new UI spec in bug 1150496 shows related attributes below the box model, does that sufficient?
Flags: needinfo?(sebastianzartner)
(In reply to Fred Lin [:gasolin] from comment #2)
> The new UI spec in bug 1150496 shows related attributes below the box model,
> does that sufficient?

No, because you still need to search for the margin, border, padding and content properties manually. So, I'm marking this as blocker for bug 1150496.

The use case is to quickly find out about how the values got computed.
I see this as a first step towards a detailed computation info, which answers questions like "Why is this element 100 pixels high when I didn't set any height on it?". The answer to this can be quite complex, like "Because you set 'display: flex;' and 'height: 100px;' on the parent element and the initial value for 'align-items' is 'stretch', which makes it's height stretch over the whole height of the parent element."

Sebastian
Flags: needinfo?(sebastianzartner)
Summary: Filter Computed panel by clicking on values within Box Model panel → Filter Computed panel by clicking on values within box model
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.