<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:tobi+webkit@basecode.de" title="basecode <tobi+webkit@basecode.de>"> <span class="fn">basecode</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - REGRESSION (r184000): Web Inspector: Stripped whitespace after editing CSS in Styles sidebar"
href="https://bugs.webkit.org/show_bug.cgi?id=145679">bug 145679</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>tobi+webkit@basecode.de
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - REGRESSION (r184000): Web Inspector: Stripped whitespace after editing CSS in Styles sidebar"
href="https://bugs.webkit.org/show_bug.cgi?id=145679#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - REGRESSION (r184000): Web Inspector: Stripped whitespace after editing CSS in Styles sidebar"
href="https://bugs.webkit.org/show_bug.cgi?id=145679">bug 145679</a>
from <span class="vcard"><a class="email" href="mailto:tobi+webkit@basecode.de" title="basecode <tobi+webkit@basecode.de>"> <span class="fn">basecode</span></a>
</span></b>
<pre>Editing CSS in the Styles sidebar happens within an Editor that uses the CSSRule-Formatter for pretty printing.
Before <a href="http://trac.webkit.org/changeset/184000/trunk">http://trac.webkit.org/changeset/184000/trunk</a>:
The CSSRule-Formatter was (kinda) a copy of the CSS-Formatter.
After <a href="http://trac.webkit.org/changeset/184000/trunk">http://trac.webkit.org/changeset/184000/trunk</a>:
The CSSRule-Formatter was optimized for CSSRules and lost some of the CSSStyleSheet specific features. That change optimized pretty printing in the Styles sidebar.
The bug is a result of applying CSS that is optimized for CSSRules to a CSSStyleSheet.
Potential solutions:
1) Let the CSS being formatted with the CSS-Formatter before it gets copied to the CSS Resource.
2) Change the CSSRule-Formatter in a way so that it works for CSSRule and CSSStyleSheet.
I'd prefer solution 1. Not sure though what part of the code should apply the CSS-Formatter.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>