get the right stylesheet – or else...

just do it, with an @import...

chaotic test page
#20
01.aug.2006
rev: 15.aug.2008

definitely some non-valid CSS involved

not active active stylesheet
/* chaos-060801-normal */
@import u\rl("chaos-060801-test1.css");
@import _url("chaos-060801-test2.css");
@import *url("chaos-060801-test3.css");
@import \url("chaos-060801-test4.css");
@import $url("chaos-060801-test5.css");
@import --url("chaos-060801-test6.css");
@import */url("chaos-060801-test7.css");
@import url("chaos-060801-test8.css") screen;
@import url(chaos-060801-test9.css) screen;

#independent li.imp0 {margin-left: 250px;}

Notes:

Correct result: only stylesheet 'normal' and 'test 8 & 9', should be active - all colored black.

Test 9 is part of the "@import hack", separating IE/win from other browsers.
See: prepared for IE7 for more about this hack.

Update [15.aug.2008]:Opera seems to have changed "recovery after invalid rules" strategy from version 9.50. Does pick up 'normal' styles when given 1 "dummy-rule" after @imports to recover on, but ignores all @imports after invalide one(s).
Don't know if this is acceptable behavior or not. Further testing needed.

testing browsers:

Opera:
win2K: 9.00 - correct on all.
win2K: 9.50β - correct on all.
win2K: 9.50 - see [15.aug.2008] update above.
Moz:
win2K: 1.7.12 - wrong on 1 & 4.
FF:
win2K: 1.5.0.5 - wrong on 1 & 4.
win2K: 3.0β2 - wrong on 1 & 4.
Safari:
Mac OS-X: 1.2 - correct on all.
Mac OS-X: 1.3 - correct on all.
winXP: 3.0.4 - correct on all.
IE:
win2K: 6.0 - wrong on test 1, 2, 3, 4, 5, 6, 7, 8 & 9.
winXP: 7.0 - wrong on test 1, 3, 4, 5, 7, 8 & 9.
Mac OS-X: 5.2 - wrong on test 1 & 4.

go to test-menu