WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
177461
Web Inspector: Styles Redesign: Style unused, overridden, and invalid properties differently
https://bugs.webkit.org/show_bug.cgi?id=177461
Summary
Web Inspector: Styles Redesign: Style unused, overridden, and invalid propert...
Nikita Vasilyev
Reported
2017-09-25 13:45:02 PDT
Style unused, overridden, invalid, and not-inherited properties the same way as in the current styles sidebar. <
rdar://problem/33525629
>
Attachments
Patch
(4.89 KB, patch)
2017-09-25 13:59 PDT
,
Nikita Vasilyev
no flags
Details
Formatted Diff
Diff
Patch
(4.89 KB, patch)
2017-09-25 14:25 PDT
,
Nikita Vasilyev
no flags
Details
Formatted Diff
Diff
[Screenshot] With patch applied
(128.43 KB, image/png)
2017-09-25 14:36 PDT
,
Nikita Vasilyev
no flags
Details
Patch
(4.92 KB, patch)
2017-09-26 16:43 PDT
,
Nikita Vasilyev
no flags
Details
Formatted Diff
Diff
Patch
(4.95 KB, patch)
2017-09-26 16:47 PDT
,
Nikita Vasilyev
no flags
Details
Formatted Diff
Diff
[Screenshot] With patch applied
(127.71 KB, image/png)
2017-09-26 16:49 PDT
,
Nikita Vasilyev
no flags
Details
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Nikita Vasilyev
Comment 1
2017-09-25 13:59:09 PDT
Created
attachment 321737
[details]
Patch
Nikita Vasilyev
Comment 2
2017-09-25 14:06:09 PDT
Comment on
attachment 321737
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=321737&action=review
> Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.css:75 > +.spreadsheet-style-declaration-editor .property:matches(.invalid, .other-vendor, .not-inherited, .overridden) { > + text-decoration: line-through; > + -webkit-text-decoration-color: hsla(0, 0%, 0%, 0.6); > +} > + > +.spreadsheet-style-declaration-editor .property.invalid { > + -webkit-text-decoration-color: hsla(0, 100%, 50%, 0.6); > +}
This is the same line-through as in
https://github.com/WebKit/webkit/blob/bc1e9d2e86be469e2a519c15c8368ca043623f03/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.css#L66-L76
> Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.css:79 > +}
Same opacity as in
https://github.com/WebKit/webkit/blob/bc1e9d2e86be469e2a519c15c8368ca043623f03/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.css#L95-L97
.
> Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.js:141 > + this._element.classList.add(...classNames);
This is a copy/paste of
https://github.com/WebKit/webkit/blob/bc1e9d2e86be469e2a519c15c8368ca043623f03/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.js#L1016-L1051
However, I moved propertyNameIsValid inside of the relevant if condition, and replaced `var` with `let`.
Nikita Vasilyev
Comment 3
2017-09-25 14:25:39 PDT
Created
attachment 321741
[details]
Patch
Nikita Vasilyev
Comment 4
2017-09-25 14:36:31 PDT
Created
attachment 321744
[details]
[Screenshot] With patch applied Static page for manual testing:
http://nv.github.io/webkit-inspector-bugs/styles-redesign/tests/property-types.html
Nikita Vasilyev
Comment 5
2017-09-26 16:43:30 PDT
Created
attachment 321892
[details]
Patch
Nikita Vasilyev
Comment 6
2017-09-26 16:47:23 PDT
Created
attachment 321895
[details]
Patch
Nikita Vasilyev
Comment 7
2017-09-26 16:49:14 PDT
Created
attachment 321896
[details]
[Screenshot] With patch applied
Matt Baker
Comment 8
2017-09-26 19:23:45 PDT
Comment on
attachment 321895
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=321895&action=review
r=me
> Source/WebInspectorUI/ChangeLog:10 > + - Non-inherited properties of inherited rules are no longer strikethrough (but still semi-transparent).
Those strikethroughs were confusing. Looks like we match Chrome now. I noticed both Firefox and Edge hide non-inherited properties completely.
WebKit Commit Bot
Comment 9
2017-09-26 19:54:39 PDT
Comment on
attachment 321895
[details]
Patch Clearing flags on attachment: 321895 Committed
r222547
: <
http://trac.webkit.org/changeset/222547
>
WebKit Commit Bot
Comment 10
2017-09-26 19:54:40 PDT
All reviewed patches have been landed. Closing bug.
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