Expose desugaredSelector property on StyleRuleActor form for nested rule
Categories
(DevTools :: Inspector: Rules, task, P1)
Tracking
(firefox116 fixed)
| Tracking | Status | |
|---|---|---|
| firefox116 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: emilio)
References
Details
Attachments
(1 file, 1 obsolete file)
We need the full desugared selector in the inspector for a few different things (matching style for a rule, selector highlighter, …), so let's expose it from the server.
We might also put it for each ancestor so we could also display it for parent rules if need be
| Reporter | ||
Comment 1•3 years ago
|
||
Emilio, is this something platform keeps around for a given rule? If so, can you point me to it so I can try to expose it for chome access?
Not the end of the world if this is not the case, it shouldn't be too hard to do in JS
| Assignee | ||
Comment 2•3 years ago
|
||
We don't, we generate those dynamically later, but it shouldn't be too hard to do... Curious, do you always want the desugared selector for a given rule? Or do you need something like CSSStyleRule.desugarSelectorWith(UTF8String parentSelector)? Either way is probably fine.
| Assignee | ||
Comment 3•3 years ago
|
||
Oh, also, do you want the whole selector text? Or the selector at one position? We have a bunch of APIs for DevTools that do the later, so just wondering.
| Reporter | ||
Comment 4•3 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #2)
We don't, we generate those dynamically later, but it shouldn't be too hard to do... Curious, do you always want the desugared selector for a given rule? Or do you need something like
CSSStyleRule.desugarSelectorWith(UTF8String parentSelector)? Either way is probably fine.
Yeah we'll probably always want the desugared selector for a rule, since we'll need it for our highlighter selector (Bug 1838163), and I also think it will be useful to display it for the user (Bug 1838626)(In reply to Emilio Cobos Álvarez (:emilio) from comment #3)
Oh, also, do you want the whole selector text? Or the selector at one position? We have a bunch of APIs for DevTools that do the later, so just wondering.
Yeah the whole selector text is what we want for this case
| Assignee | ||
Comment 5•3 years ago
|
||
Updated•3 years ago
|
Updated•3 years ago
|
| Reporter | ||
Updated•3 years ago
|
| Reporter | ||
Comment 7•3 years ago
|
||
Depends on D181109
Comment 9•3 years ago
|
||
| bugherder | ||
Comment 10•3 years ago
|
||
Comment on attachment 9340225 [details]
Bug 1838627 - [devtools] Expose desugared selectors on style rule actor. r=#devtools-reviewers.
Revision D181606 was moved to bug 1838163. Setting attachment 9340225 [details] to obsolete.
Description
•