Splibbilla
2008-04-08 11:01:09 UTC
@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
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