Bug 133965

Summary: Web Inspector: style declaration editor: visual highlight doesn't match actual selected text
Product: WebKit Reporter: Jonathan Wells <jonowells>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, graouts, joepeck, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Attempted CSS fix
none
[PATCH] Attempted CSS fix, remembered ChangeLog
none
[PATCH] Attempted CSS fix, remembered ChangeLog VER 2
joepeck: review+
[PATCH] Attempted CSS fix, remembered ChangeLog VER 3 none

Description Jonathan Wells 2014-06-16 19:51:50 PDT
<rdar://problem/17260272>
Comment 1 Jonathan Wells 2014-06-16 19:52:35 PDT
Regression due to CodeMirror 4 changes in tag structure.
Comment 2 Jonathan Wells 2014-06-16 19:55:40 PDT
Created attachment 233209 [details]
[PATCH] Attempted CSS fix

Note, this fix removes the two-character indentation for rules that wrap to a second line or more. The use of the hanging indent hack was causing this and some other problems. `text-indent: hanging`, or something similar, if implemented, might help. With this fix though the highlight doesn't cover the checkboxes which actually makes sense and creates a very clear visual of what the user is selecting.
Comment 3 Jonathan Wells 2014-06-16 20:40:04 PDT
Created attachment 233211 [details]
[PATCH] Attempted CSS fix, remembered ChangeLog
Comment 4 Joseph Pecoraro 2014-06-17 10:40:38 PDT
Comment on attachment 233211 [details]
[PATCH] Attempted CSS fix, remembered ChangeLog

View in context: https://bugs.webkit.org/attachment.cgi?id=233211&action=review

> Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.css:43
> +    text-indent: 0;

Can this just be removed? Or is it overriding something?

> Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.css:57
>      /* Compensate for the missing checkboxes so properties line up with editable styles that have checkboxes. */
> -    text-indent: -14px;
> +    text-indent: 0;

Can this just all be removed? Or is it overriding something?
Comment 5 Jonathan Wells 2014-06-17 13:25:12 PDT
Created attachment 233257 [details]
[PATCH] Attempted CSS fix, remembered ChangeLog VER 2
Comment 6 Joseph Pecoraro 2014-06-17 13:43:13 PDT
Comment on attachment 233257 [details]
[PATCH] Attempted CSS fix, remembered ChangeLog VER 2

View in context: https://bugs.webkit.org/attachment.cgi?id=233257&action=review

r=me

> Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.css:55
>      /* Compensate for the missing checkboxes so properties line up with editable styles that have checkboxes. */

Can this comment be removed now? Essentially we are just removing the indent. In fact the comment may be more useful up above where we do set a text-indent.
Comment 7 Jonathan Wells 2014-06-17 14:49:35 PDT
Created attachment 233262 [details]
[PATCH] Attempted CSS fix, remembered ChangeLog VER 3
Comment 8 WebKit Commit Bot 2014-06-17 14:50:00 PDT
Comment on attachment 233262 [details]
[PATCH] Attempted CSS fix, remembered ChangeLog VER 3

Rejecting attachment 233262 [details] from review queue.

jonowells@apple.com does not have reviewer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/contributors.json.

- If you do not have reviewer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have reviewer rights please correct the error in Tools/Scripts/webkitpy/common/config/contributors.json by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your reviewer rights.
Comment 9 WebKit Commit Bot 2014-06-17 14:50:35 PDT
Comment on attachment 233262 [details]
[PATCH] Attempted CSS fix, remembered ChangeLog VER 3

Rejecting attachment 233262 [details] from commit-queue.

jonowells@apple.com does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/contributors.json.

- If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/contributors.json by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your committer rights.
Comment 10 WebKit Commit Bot 2014-06-17 14:51:11 PDT
Comment on attachment 233262 [details]
[PATCH] Attempted CSS fix, remembered ChangeLog VER 3

Rejecting attachment 233262 [details] from commit-queue.

jonowells@apple.com does not have committer permissions according to http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/common/config/contributors.json.

- If you do not have committer rights please read http://webkit.org/coding/contributing.html for instructions on how to use bugzilla flags.

- If you have committer rights please correct the error in Tools/Scripts/webkitpy/common/config/contributors.json by adding yourself to the file (no review needed).  The commit-queue restarts itself every 2 hours.  After restart the commit-queue will correctly respect your committer rights.
Comment 11 WebKit Commit Bot 2014-06-17 15:26:44 PDT
Comment on attachment 233262 [details]
[PATCH] Attempted CSS fix, remembered ChangeLog VER 3

Clearing flags on attachment: 233262

Committed r170077: <http://trac.webkit.org/changeset/170077>
Comment 12 WebKit Commit Bot 2014-06-17 15:26:47 PDT
All reviewed patches have been landed.  Closing bug.