Closed Bug 1374107 Opened 8 years ago Closed 8 years ago

Stop using the :not(:target) selector in the SVG icons that are used to theme in-content UI

Categories

(Toolkit :: Themes, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: jwatt, Assigned: jwatt)

References

Details

(Keywords: perf)

Attachments

(5 files)

No description provided.
Summary: Stop using the :not(:target) selector in the SVG icons that are used to theme form controls → Stop using the :not(:target) selector in the SVG icons that are used to theme Web content
Comment on attachment 8878945 [details] Bug 1374107 - Convert chrome://global/skin/in-content/help-glypeh.svg and its consumers to use SVG image context paint. https://reviewboard.mozilla.org/r/150198/#review154812 ::: toolkit/themes/shared/in-content/help-glyph.svg:6 (Diff revision 1) > <!-- This Source Code Form is subject to the terms of the Mozilla Public > - License, v. 2.0. If a copy of the MPL was not distributed with this > - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> > -<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" viewBox="0 0 24 24"> > - <style> > - use:not(:target) { display: none; } > +<svg xmlns="http://www.w3.org/2000/svg" > + width="24" height="24" viewBox="0 0 24 24"> > + <!-- For the purpose of -moz-context-properties, the circle "is the stroke" --> I'm not sure this comment is as clear as it could be. Ping me if you need more explanation.
check.svg and partial-check.svg appear in the session restore list. dropdown.svg appears in dropdowns in Firefox Preferences. As far as I can tell the disabled styling is never applied any more (it used to apply in the Privacy options under the History group when checking and unchecking the "Accept cookies from sites" option, but that UI is gone). radio.svg can be seen in the radio buttons in Firefox Preferences. help-glyph.svg is displayed at the bottom-left of the Firefox Preferences page.
Depends on: 1374614
None of these icons are used for web content.
Component: Theme → Themes
Product: Firefox → Toolkit
Summary: Stop using the :not(:target) selector in the SVG icons that are used to theme Web content → Stop using the :not(:target) selector in the SVG icons that are used to theme in-content UI
Comment on attachment 8878941 [details] Bug 1374107 - Convert chrome://global/skin/in-content/check-partial.svg and its consumers to use SVG image context paint. https://reviewboard.mozilla.org/r/150190/#review156134
Attachment #8878941 - Flags: review?(dao+bmo) → review+
Comment on attachment 8878942 [details] Bug 1374107 - Convert chrome://global/skin/in-content/check.svg and its consumers to use SVG image context paint. https://reviewboard.mozilla.org/r/150192/#review156136
Attachment #8878942 - Flags: review?(dao+bmo) → review+
Comment on attachment 8878943 [details] Bug 1374107 - Convert chrome://global/skin/in-content/dropdown.svg and its consumers to use SVG image context paint. https://reviewboard.mozilla.org/r/150194/#review156144
Attachment #8878943 - Flags: review?(dao+bmo) → review+
Comment on attachment 8878944 [details] Bug 1374107 - Convert chrome://global/skin/in-content/radio.svg and its consumers to use SVG image context paint. https://reviewboard.mozilla.org/r/150196/#review156146 ::: toolkit/themes/linux/global/in-content/common.css:78 (Diff revision 1) > > xul|*.radio-check[selected] { > - list-style-image: url("chrome://global/skin/in-content/radio.svg#radio-native"); > background-color: -moz-dialog; > + list-style-image: url("chrome://global/skin/in-content/radio.svg"); > + -moz-context-properties: fill; list-style-image and -moz-context-properties should already be set here from common.inc.css ::: toolkit/themes/windows/global/in-content/common.css:54 (Diff revision 1) > > xul|*.radio-check[selected] { > - list-style-image: url("chrome://global/skin/in-content/radio.svg#radio-native"); > background-color: -moz-dialog; > + list-style-image: url("chrome://global/skin/in-content/radio.svg"); > + -moz-context-properties: fill; ditto
Attachment #8878944 - Flags: review?(dao+bmo) → review+
Comment on attachment 8878942 [details] Bug 1374107 - Convert chrome://global/skin/in-content/check.svg and its consumers to use SVG image context paint. https://reviewboard.mozilla.org/r/150192/#review156148 ::: toolkit/themes/linux/global/in-content/common.css:61 (Diff revision 1) > } > > xul|*.checkbox-check[checked] { > - list-style-image: url("chrome://global/skin/in-content/check.svg#check-native"); > + list-style-image: url("chrome://global/skin/in-content/check.svg"); > + -moz-context-properties: fill, stroke; > + fill: -moz-dialogText; ditto ::: toolkit/themes/windows/global/in-content/common.css:35 (Diff revision 1) > } > > xul|*.checkbox-check[checked] { > - list-style-image: url("chrome://global/skin/in-content/check.svg#check-native"); > + list-style-image: url("chrome://global/skin/in-content/check.svg"); > + -moz-context-properties: fill, stroke; > + fill: -moz-dialogText; ditto
Comment on attachment 8878945 [details] Bug 1374107 - Convert chrome://global/skin/in-content/help-glypeh.svg and its consumers to use SVG image context paint. https://reviewboard.mozilla.org/r/150198/#review156152 ::: toolkit/themes/shared/in-content/help-glyph.svg:6 (Diff revision 1) > <!-- This Source Code Form is subject to the terms of the Mozilla Public > - License, v. 2.0. If a copy of the MPL was not distributed with this > - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> > -<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" viewBox="0 0 24 24"> > - <style> > - use:not(:target) { display: none; } > +<svg xmlns="http://www.w3.org/2000/svg" > + width="24" height="24" viewBox="0 0 24 24"> > + <!-- For the purpose of -moz-context-properties, the circle "is the stroke" --> Yeah, I don't understand what this means.
Comment on attachment 8878945 [details] Bug 1374107 - Convert chrome://global/skin/in-content/help-glypeh.svg and its consumers to use SVG image context paint. https://reviewboard.mozilla.org/r/150198/#review156194
Attachment #8878945 - Flags: review?(dao+bmo) → review+
Pushed by jwatt@jwatt.org: https://hg.mozilla.org/integration/mozilla-inbound/rev/2a700b54c430 Convert chrome://global/skin/in-content/check-partial.svg and its consumers to use SVG image context paint. r=dao https://hg.mozilla.org/integration/mozilla-inbound/rev/b49c6dd70643 Convert chrome://global/skin/in-content/check.svg and its consumers to use SVG image context paint. r=dao https://hg.mozilla.org/integration/mozilla-inbound/rev/f9f028da99d4 Convert chrome://global/skin/in-content/dropdown.svg and its consumers to use SVG image context paint. r=dao https://hg.mozilla.org/integration/mozilla-inbound/rev/28d1422a2e61 Convert chrome://global/skin/in-content/radio.svg and its consumers to use SVG image context paint. r=dao https://hg.mozilla.org/integration/mozilla-inbound/rev/435589fde074 Convert chrome://global/skin/in-content/help-glyph.svg and its consumers to use SVG image context paint. r=dao
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: