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

Ian Hickson ian at hixie.ch
Tue Jul 19 07:08:39 PDT 2005


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list