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

[whatwg] [html5] onbeforeprint/onafterprint (was window.print() undefined)

From: J. Graham <jg307@hermes.cam.ac.uk>
Date: Tue, 19 Jul 2005 22:36:07 +0100 (BST)
Message-ID: <Pine.LNX.4.60.0507192226540.30122@hermes-1.csi.cam.ac.uk>
On Tue, 19 Jul 2005, Jim Ley wrote:

> Someone will probably suggest CSS background-images as a suitable for
> this aswell, yet again ignoring the fact that CSS is _optional_, and
> content-images must not be in background images as they simply won't
> be seen without CSS or if background images are disabled.

Er.. script is (in practice) at least as optional as CSS since more people 
actually disable script than use alternate stylesheets. Also, I'd guess 
one could meet this use case with print-only CSS generated content of some 
form or another so background-image is irrelevant (but I haven't checked 
that in detail).

Having said all that, I have no particular feeling one way or another 
about onbeforeprint. On the one hand I expect more people to 'get it' than 
some CSS based solution (plus it already works), on the other it has some 
theoretical issues and seems quite ugly.
Received on Tuesday, 19 July 2005 14:36:07 UTC

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