Discussion:
@import for userchrome.css (now not allowed?)
Splibbilla
2008-04-08 11:01:09 UTC
Permalink
@import in userchrome.css to "call" another css file. Would be useful when you want
to apply certain standard chrome styles to multiple profiles of ff (tb, sm, etc).

i assume it's not allowed as hyper-prevention of malware takeover of chrome? (or did i
somehow f# it up when i tried?)


i tried:

contents of userchrome.css reduced to :
____________________
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

@import url("testChromeBlack.css");
@import url(testChromeBlack.css);
@import url('testChromeBlack.css');
@import "testChromeBlack.css";
@import url"testChromeBlack.css";
@import url "testChromeBlack.css";


_____________________________
http://jigsaw.w3.org/css-validator/validator
accepts lines 1, 2, 3, 4. Pretty freaky that it accepts lines 3 and 4:
_________________________
(CSS level 2.1)
We found the following errors (2)
5 Parse Error url"testChromeBlack.css";
6 Parse Error url "testChromeBlack.css";

Warnings (4)
1 Imported style sheets are not checked in direct input and file upload
modes
2 Imported style sheets are not checked in direct input and file upload
modes
3 Imported style sheets are not checked in direct input and file upload
modes
4 Imported style sheets are not checked in direct input and file upload
modes

No style sheet found





________________________
contents of testChromeBlack.css
________________________
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

#PersonalToolbar, toolbarbutton, tabbox, #statusbar-display, #status-bar, menubar,
menubutton, menulist, menu, menu * , menuitem, textbox, toolbar, tab, tree
{background-color:black ! important;background-color:#000000 ! important;color:white
! important;color:#ffffff ! important;}




________________________
doesn't make much sense, but also tried this in testChromeBlack.css
________________________
*, html *, body * {background-color:black ! important;background-color:#000000 !
important;color:white ! important;color:#ffffff ! important;}

[all the usual shutdowns & restarts between edits.]

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311
Firefox/2.0.0.13
JP. Baker
2008-04-08 12:38:52 UTC
Permalink
Post by Splibbilla
@import in userchrome.css to "call" another css file. Would be useful when you
want to apply certain standard chrome styles to multiple profiles of ff (tb,
sm, etc).
i assume it's not allowed as hyper-prevention of malware takeover of chrome? (or
did i somehow f# it up when i tried?)
http://www.w3.org/TR/css3-namespace/#syntax

WFM - if I put the @import before the @namespace as is required...

__________________________________________________________________________
@import url("red.css");

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
__________________________________________________________________________
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

* {color: red !important}
__________________________________________________________________________
--
John P Baker
Splibbilla
2008-04-08 16:52:39 UTC
Permalink
voila. that did it. i googled for info a couple months ago and gave up for then.
but asking around, sometimes someone knows.
it's another case of that old pseudoparadox: "why do you always find your eyeglasses
in the last place you look?"

it'll be much easier to manage profiles.

danke mucho.

(too bad this whole thread can't be moved to the general ff help group)
Melchert Fruitema
2008-04-08 18:43:05 UTC
Permalink
Post by Splibbilla
voila. that did it. i googled for info a couple months ago and gave up for then.
but asking around, sometimes someone knows.
it's another case of that old pseudoparadox: "why do you always find your eyeglasses
in the last place you look?"
it'll be much easier to manage profiles.
danke mucho.
(too bad this whole thread can't be moved to the general ff help group)
Well, you could post the message identifier of the original post of this
in the firefox support newsgroup:

<news://news.mozilla.org:119/***@216.196.97.169>
--
Kind regards,
Melchert

(MacOS 10.3.9 / Firefox 2.0, Thunderbird 2.0)
Loading...