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

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

From: Jim Ley <jim.ley@gmail.com>
Date: Tue, 19 Jul 2005 23:22:25 +0100
Message-ID: <851c8d310507191522680c0dac@mail.gmail.com>
On 7/19/05, J. Graham <jg307 at hermes.cam.ac.uk> wrote:
> 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. 

Yes and no, we can only make these changes to the content with script
so a script print solution is acceptable, for example in the above
example the static non-scripted document would not have any of this
media specific content in, it would only be added with script when
appropriate, that way the media specific nature can be relied upon -
the script is unobtrusive.  CSS however is optional at the fine
grained level.

Jim.
Received on Tuesday, 19 July 2005 15:22:25 UTC

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