Bug 112684 - Web Inspector: Behavior of the return key in the Styles details sidebar is unintuitive
Summary: Web Inspector: Behavior of the return key in the Styles details sidebar is un...
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Trivial
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-03-19 05:08 PDT by Adrian von Gegerfelt
Modified: 2017-01-02 17:21 PST (History)
3 users (show)

See Also:


Attachments
Word-wrapping in Styles pane. (10.07 KB, image/png)
2013-03-19 05:08 PDT, Adrian von Gegerfelt
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian von Gegerfelt 2013-03-19 05:08:38 PDT
Created attachment 193798 [details]
Word-wrapping in Styles pane.

Scenario:
Example:
float: left;
Clicking in the middle of the word 'float'

Behaviour:
Adds carriage return in middle of word, wrapping it down, removes left margin of panel style and nullifies effect of CSS declaration. Same goes if you clicked inside the word 'left'.
Please see attached screenshot.

Expected behaviour:
New, empty, declaration added underneath, with marker set to far left.
Comment 1 Radar WebKit Bug Importer 2013-03-19 05:16:06 PDT
<rdar://problem/13451261>
Comment 2 Timothy Hatcher 2013-03-19 05:53:43 PDT
So you want pressing return anywhere in the line to add a newline without breaking the current line in the middle?

I'm not sure about this. The new Styles sidebar is just a text editor with special markers. We want to allow developers to add and remove line breaks wherever they want.

What you request is possible, I'm just not sure if it is the best or expected behavior for everyone.
Comment 3 BJ Burg 2017-01-02 17:21:26 PST
Behaves as expected per Tim's comment. We are not going to change this editing model.