Open Bug 1649189 Opened 5 years ago Updated 5 months ago

Create a devtools annotated styling pass

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: bradwerth, Unassigned)

Details

Devtools has some features that show decisions made by the styling system, but uses imprecise or inefficient methods to generate the data. For example:

  • Inactive CSS uses heuristics to determine whether a property is applied.
  • The Rule View parses the CSS files to determine which selectors match a DOM element.

These features would work more accurately and more efficiently if the required data could be extracted from the Platform styling system. There may be other existing or planned features that could also benefit from this.

If we build this feature, one approach would be to set a flag in the styling system, then re-run the style computation and extract the requested data.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: General → Inspector
No longer blocks: 1644138
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.