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

[whatwg] [html5] window.print() undefined

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 19 Jul 2005 14:08:39 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0507191405510.1857@dhalsim.dreamhost.com>
On Tue, 19 Jul 2005, Dimitri Glazkov wrote:
> a) my invoice format requires a timestamp that says something like this: 
> printed by [person] on [timestamp].

This use case is being dealt with in the CSS paged media and CSS generated 
content specifications.

> b) To capture the essence of the browsing session, I would like to build 
> a breadcrumb at the bottom of the printed page, displaying titles and 
> urls of pages the user have visited on the site during this visit.

That seems like something that would be useful regardless of the medium. 
Put it in the content, and then hide it in the media you don't want it 
visible for, e.g.:

   @media screen {
      footer .breadcrumbs { display: none; }

I agree that your use cases are real, don't get me wrong. I just don't 
think that it makes sense to consider them as being something you would do 
upon entering a print mode.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 19 July 2005 07:08:39 UTC

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