[Webkit-unassigned] [Bug 150553] Web Inspector: Editing CSS via Styles sidebar causes some white space to be stripped
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Oct 27 12:45:42 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=150553
Devin Rousso <dcrousso+webkit at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dcrousso+webkit at gmail.com
--- Comment #2 from Devin Rousso <dcrousso+webkit at gmail.com> ---
I think I know why this is happening. I made the previous change to add support for proper whitespace prepending, but I don't think I took into account the case where the text is indented by the formatter (my patch worked by looking at the existing whitespace before the first property and applied that space to every other line). It is possible that the code I added doesn't take into account extra indentations not visible in the text of the style (like a formatted indent). As a fix, I think it may be necessary to look at the ownerRule and see how many items are in mediaList and indent that many times (similar to what generateCSSRuleString does in CSSStyleDeclaration.js).
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151027/617064f2/attachment.html>
More information about the webkit-unassigned
mailing list