Bug 226648 - Web Inspector: Styles: Do not show inherited CSS variables found in declared but unused CSS variables on matching styles
Summary: Web Inspector: Styles: Do not show inherited CSS variables found in declared ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Razvan Caliman
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-06-04 09:30 PDT by Razvan Caliman
Modified: 2021-06-04 09:31 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Razvan Caliman 2021-06-04 09:30:49 PDT
Follow-up to https://webkit.org/b/225972

In the Styles details sidebar panel, an unused inherited variable is shown if found in the value of a declared but unused variable on the matching styles.


```
div {
  --never-used: var(--never-used-inherited);
}

html {
  --never-used-inherited: red;
}
```

Expected:
`--never-used-inherited` from inherited styles should be hidden because it is not _actually used_.
Comment 1 Radar WebKit Bug Importer 2021-06-04 09:31:15 PDT
<rdar://problem/78872576>