Bug 138997 - Web Inspector: add more :not() and :matches() awesomeness
Summary: Web Inspector: add more :not() and :matches() awesomeness
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Benjamin Poulain
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-21 20:41 PST by Benjamin Poulain
Modified: 2014-12-01 16:09 PST (History)
2 users (show)

See Also:


Attachments
Patch (18.51 KB, patch)
2014-11-21 20:49 PST, Benjamin Poulain
joepeck: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Poulain 2014-11-21 20:41:37 PST
Web Inspector: add more :not() and :matches() awesomeness
Comment 1 Benjamin Poulain 2014-11-21 20:49:29 PST
Created attachment 242106 [details]
Patch
Comment 2 Joseph Pecoraro 2014-12-01 15:18:56 PST
Comment on attachment 242106 [details]
Patch

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

r=me

> Source/WebInspectorUI/UserInterface/Views/DashboardContainerView.css:102
> -body.mac-platform.legacy .toolbar .dashboard,
> -body.mac-platform.legacy.window-inactive .toolbar .dashboard {
> +body.mac-platform.legacy .toolbar .dashboard {

Hmm. Though yes this is true, we may want to keep both here so that we don't accidentally have the non-legacy .window-inactive styles later get more specificity and trigger on legacy. Also, it provides clarity that this style should be used in both the active and inactive cases for legacy.

> Source/WebInspectorUI/UserInterface/Views/RadioButtonNavigationItem.css:70
> -body.mac-platform.legacy .navigation-bar .item.radio.button.text-only:active,
> -body.mac-platform.legacy .navigation-bar .item.radio.button.text-only.selected:active {
> +body.mac-platform.legacy .navigation-bar .item.radio.button.text-only:active {

Ditto.

> Source/WebInspectorUI/UserInterface/Views/SyntaxHighlightingDefaultTheme.css:43
> +.cm-s-default :matches(.cm-tag, .cm-bracket, .cm-atom, .cm-keyword, .cm-m-javascript.cm-builtin),
> +.cm-s-default .cm-m-css:matches(.cm-atom, .cm-meta, .cm-variable-3, .cm-property),
> +.syntax-highlighted :matches(.css-keyword, .css-tag, .css-at-rule, .css-important, .javascript-keyword, .html-tag) {

Seem this is missing a selector:

    .cm-s-default .cm-m-javascript.cm-builtin,

> Source/WebInspectorUI/UserInterface/Views/SyntaxHighlightingDefaultTheme.css:52
> +.cm-s-default :matches(.cm-def, .cm-operator, .cm-variable, .cm-variable-2),

This is missing ".cm-bracket" in the list.
Comment 3 Benjamin Poulain 2014-12-01 16:09:35 PST
Committed r176610: <http://trac.webkit.org/changeset/176610>