W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2004

[whatwg] Re: media types

From: Erik Arvidsson <erik@eae.net>
Date: Tue, 27 Jul 2004 00:23:22 +0200
Message-ID: <4105845A.5030700@eae.net>
Jonny Axelsson wrote:
>> Hmm. Would this make it easy for authors to prevent pages from being  
>> printed? I wouldn't want that.
> 
> 
> Neither would I. You could do this today with your dirty hack below. 
> The  obvious workaround would be to turn off JavaScript. That could be  
> countered by making the entire page document.write (or equivalent), 
> which  wouldn't be a problem until we reevaluated the behaviours.

This can be achieved easily today using

@media print {
    * {
       display: none !important;
    }
}

> If this turns out to be a non-hypothetical problem, we would have an  
> arsenal of methods to counteract this, including printing pages using 
> the  screen medium.

That is one way to get around this.

erik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3150 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20040727/92f3e648/attachment.bin>
Received on Monday, 26 July 2004 15:23:22 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:35 UTC