New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 662912 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit 29 days ago
Closed: Dec 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Feature



Sign in to add a comment

CSS Styles added via javascript CSSStyleSheet.insertRule do not appear in the Elements panel

Reported by aaronovi...@gmail.com, Nov 7 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36

Steps to reproduce the problem:
1. in Console tab enter: document.body.appendChild(document.createElement("style"));document.styleSheets[document.styleSheets.length-1].insertRule("body{background:red!important}",0)
2. in Elements tab scroll to bottom of HTML
3. Expand the <style></style> tags just before </body> (closing body tag)

What is the expected behavior?
I should see the JS injected style declaration in the JS injected Style node

What went wrong?
You tell me...

Did this work before? N/A 

Chrome version: 54.0.2840.71  Channel: n/a
OS Version: 10.0
Flash Version: Shockwave Flash 23.0 r0

Yes you can see the new rule in the Styles panel if you highlight the element to which it applies, but why doesn't it just work like injecting DOM elements?
Firebug shows dynamically injected styles in its CSS panel...
 
Cc: tkonch...@chromium.org
Labels: Needs-Feedback
Tested the same on win10 chrome version 54.0.2840.99 - observed the output as shown in the screenshot

Could you please let us know if this is working fine with any other browser. If yes please provide a screenshot for further investigation
662912.png
270 KB View Download

Comment 2 by l...@chromium.org, Nov 14 2016

Owner: lushnikov@chromium.org
If we have this information, we should be able to show it in the SSP.

Comment 3 by l...@chromium.org, Nov 14 2016

Labels: -Type-Bug Type-Feature
Status: Assigned (was: Unconfirmed)
Status: WontFix (was: Assigned)
Won't fix due to lack of feedback.

Sign in to add a comment