Closed Bug 1386108 Opened 7 years ago Closed 7 years ago

Update Computed stylesheet to use more specific selectors

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(firefox57 fixed)

RESOLVED FIXED
Firefox 57
Tracking Status
firefox57 --- fixed

People

(Reporter: gl, Assigned: gl)

References

Details

Attachments

(1 file, 1 obsolete file)

In Bug 1242201, we will be adding the markup.css stylesheet to inspector.xhtml. We have some selector conflicts between the markup and computed view. This is to make the selectors in computed.css more specific.
Priority: -- → P3
Blocks: 1242201
Comment on attachment 8892456 [details]
Bug 1386108 - Update Computed stylesheet to use more specific selectors.

https://reviewboard.mozilla.org/r/163426/#review168854

I would have preferred to stick with computedview rather than computed as the prefix. Looks good otherwise.
I can't see the try results at the moment (looks like treeherder has some difficulties?) so R+ with a green try.

::: devtools/client/inspector/inspector.xhtml:122
(Diff revision 1)
>  
>        <div id="sidebar-panel-computedview" class="devtools-monospace theme-sidebar inspector-tabpanel"
>                  data-localization-bundle="devtools/client/locales/inspector.properties">
> -        <div id="computedview-toolbar" class="devtools-toolbar">
> +        <div id="computed-toolbar" class="devtools-toolbar">
>            <div class="devtools-searchbox has-clear-btn">
>              <input id="computedview-searchbox"

for consistency shouldn't we computedview-searchbox -> computed-searchbox

::: devtools/client/inspector/inspector.xhtml:126
(Diff revision 1)
>            <div class="devtools-searchbox has-clear-btn">
>              <input id="computedview-searchbox"
>                          class="devtools-filterinput devtools-rule-searchbox"
>                          type="search"
>                          data-localization="placeholder=inspector.filterStyles.placeholder"/>
>              <button id="computedview-searchinput-clear" class="devtools-searchinput-clear"></button>

same comment

::: devtools/client/themes/computed.css:213
(Diff revision 1)
> -.link,
> -.helplink,
> +.computed-link,
> +.computed-link:visited {

This ruleset can now be merged with the one above
Attachment #8892456 - Flags: review?(jdescottes) → review+
Attached patch 1386108.patchSplinter Review
Attachment #8892456 - Attachment is obsolete: true
Attachment #8892698 - Flags: review+
Pushed by gabriel.luong@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/4ed4bccae615
Update Computed stylesheet to use more specific selectors. r=jdescottes
https://hg.mozilla.org/mozilla-central/rev/4ed4bccae615
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
Product: Firefox → DevTools
Component: Inspector: Computed → Inspector
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: