Display registered property info for custom properties
Categories
(DevTools :: Inspector: Rules, task)
Tracking
(firefox124 fixed)
Tracking | Status | |
---|---|---|
firefox124 | --- | fixed |
People
(Reporter: sebo, Assigned: nchevobbe)
References
(Depends on 1 open bug, Blocks 4 open bugs, Regressed 1 open bug)
Details
Attachments
(2 files)
As mentioned in bug 1841021, the CSS Properties and Values API gives custom properties semantic meaning by attaching additional information to them.
This information should be displayed within the Rules panel.
One way to do so is to extend the current tooltip showing the current value of the property by those pieces of information.
There might also be a link to the @property
rule in the Style Editor when registered via CSS or to the registerProperty
function call in the Debugger when registered via JS.
Sebastian
Assignee | ||
Comment 1•2 years ago
|
||
Looks like Chrome DevTools are implementing something that looks like this: https://front-end.social/@bramus/110932815004882288
Assignee | ||
Comment 2•2 years ago
|
||
Chrome DevTools
- Has a "@property" section, listing all registered CSS properties (via
@property
orCSS.registerProperty
). CSS declared@property
property name and values can be updated directly there (but not for the ones created viaCss.registerProperty
). - Displays a tooltip when hovering a
var(--xxx)
value, with all registered @property rule properties (syntax
,inherits
andinitial-value
) + a link that highlights the matching property in the "@property" section.
Assignee | ||
Comment 3•2 years ago
|
||
I filed Bug 1857526 which reflects an issue in the current state. We might keep this bug only for adding the @property
section in the rules panel
Comment 4•2 years ago
|
||
Making this depend on bug 1273706 as the bug 1684605 and bug 1821552 were closed as duplicate.
Comment 5•2 years ago
|
||
(In reply to Frédéric Wang (:fredw) from comment #4)
Making this depend on bug 1273706 as the bug 1684605 and bug 1821552 were closed as duplicate.
Actually removing, : css-properties-values-api blocks bug 1841021 and bug 1841021 is used as a meta for devtools-related bugs IIUC.
Assignee | ||
Comment 6•2 years ago
|
||
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 8•2 years ago
|
||
bugherder |
Description
•