WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
ASSIGNED
178990
Web Inspector: Styles: Editing style attribute prepends line-break
https://bugs.webkit.org/show_bug.cgi?id=178990
Summary
Web Inspector: Styles: Editing style attribute prepends line-break
Nikita Vasilyev
Reported
2017-10-29 13:40:12 PDT
Editing the style attribute via the sidebar causes a line-break character to be prepended to the style attribute text in the DOM tree. This affects both the old and the new styles sidebar.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-10-29 13:40:56 PDT
<
rdar://problem/35242049
>
Nikita Vasilyev
Comment 2
2017-10-29 13:43:31 PDT
This was introduced in
Bug 157869
- REGRESSION (
r188730
): Web Inspector: Warning icons incorrectly positioned in CSS Rules sidebar.
https://bugs.webkit.org/show_bug.cgi?id=157869#c10
:
> This patch is essentially fixes the bug without making too much changes in > how we handle spacing and indentation in CSS. > In the future, we shouldn't append or prepend "\n" to inline styles at all. > This would require more changes to be made, which can > potentially break things.
Now is a good time to make these changes and add more tests.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug