Open
Bug 1011672
Opened 11 years ago
Updated 3 months ago
insertRule doesn't show up in Style tab
Categories
(DevTools :: Style Editor, defect, P3)
Tracking
(Not tracked)
NEW
People
(Reporter: lb1.3, Unassigned)
References
(Blocks 2 open bugs)
Details
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 (Beta/Release)
Build ID: 20140428193813
Steps to reproduce:
insertRule on a stylesheet (https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet.insertRule)
View the stylesheet in Style tab
Actual results:
It doesn't seem to show any differences for added/removed styles (and it showed -1 in line number in inspector?)
Expected results:
It should (at least have option to) show what the stylesheet effectively is, not what is from disk/request.
Status: UNCONFIRMED → NEW
Component: Untriaged → Developer Tools: Style Editor
Ever confirmed: true
OS: Linux → All
Hardware: x86_64 → All
Comment 1•9 years ago
|
||
The inspector and the style-editor show the CSS as it was authored (so from disk/request), and doesn't deal very well (if at all) with changes made via the CSSOM API (insertRule and the likes).
I think bug 1196250 would help.
Priority: -- → P3
See Also: → 1196250
Updated•7 years ago
|
Product: Firefox → DevTools
Comment 2•3 years ago
•
|
||
I'm adding this issue to the devtools-webcompat-team
metabug because I just ran int this while diagnosing a WebCompat issue, where an app added CSS rules to an empty inline style tag with insertRule
, and I wanted to inspect other rules in context of the whole stylesheet.
Even though I'm adding this to the metabug, this has a super low priority. If I recall correctly, this is the first time I've stumbled across it, and while it confused me for a bit, I don't think we'd save any significant time by having proper DevTools-support here.
Also, thanks to :nchevobbe, who helped me figure out what's going on there.
Blocks: devtools-webcompat-team
Updated•2 years ago
|
Severity: normal → S3
Updated•3 months ago
|
Blocks: dt-2025-h1-P2
Comment 3•3 months ago
|
||
We might have a similar solution to what we'll do for constructable stylesheets in Bug 1809108
See Also: → 1809108
You need to log in
before you can comment on or make changes to this bug.
Description
•