Created attachment 111939 [details] Comment out unchecked CSS rule See attached image. Currently, disabling style rule does not modify CSS content. Commenting it out would be nice.
Should this toggling of CSS property result in creating new revision of the stylesheet in the resource view?
Vivek: no it shouldn't. If a designer were to play around with disabling really many properties during a session, they could get hundreds of stylesheet revisions per the Inspector session, thereby turning the revision tracking completely unusable (and potentially getting a severe memory impact (or even OOM crashes) with very big stylesheets.)
The idea is to save a stylesheet including commented out rules. Is it possible without creating a revision for every disabled style rule?
@Alexander, @Vivek Performing other small/incremental changes, like adjusting a color property 100 times, also creates a version for each change. So, the change is not entirely inconceivable because we already create a ton of versions. Right now, it's just inconsistent. Theoretically, I think we could potentially solve the problem a different way. It would deserve it's own ticket and discussion though. Instead of creating a version of the style-sheet for each change performed in the Elements panel, what if we made those changes to a "TRUNK" version, that we save that version upon viewing the resource in the Resource panel.
We agree. The new WebKit Web Inspector does this.
<rdar://problem/14173879>