Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: @media and @-moz-document at the same time?

31 views
Skip to first unread message

Stanimir Stamenkov

unread,
Jan 21, 2006, 3:04:04 AM1/21/06
to
/Gary van der Merwe/:

> @media print @-moz-document domain(privateproperty.co.za)
> {
> .rightcontainer, .leftcontainer
> {
[...]
> @-moz-document domain(privateproperty.co.za)
> {
> @media print
> {
> .rightcontainer, .leftcontainer
> {
[...]
> @media print
> {
> @-moz-document domain(privateproperty.co.za)
> {
> .rightcontainer, .leftcontainer
> {
[...]

The first one is incorrect. I think the later two should both work,
but I've tried they don't work. I've tried a workaround which
appears to work for me. I've included:

@import url(userContentPrint.css) print;

line before any rules [1] in "userContent.css" and I've placed the
@-moz-document rule in a separate file "userContentPrint.css" in the
same directory as "userContent.css".

[1] http://www.w3.org/TR/CSS21/cascade.html#at-import

--
Stanimir

0 new messages