As per MDN, the CSSStyleRule object's style property is declared as read-only. Is it possible to effectively modify its style attributes in modern web browsers like Chrome, Safari, Firefox, and even IE9?
On a related note, is there a method to access comments within a style rule and determine which specific rule or selector the comment corresponds to? For example:
.my-rule {
/* A Comment */
color: blue;
}
I am looking for a way to extract the /* A Comment */
using JavaScript.