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

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

From: Dean Edwards <dean@edwards.name>
Date: Mon, 18 Jul 2005 22:40:54 +0100
Message-ID: <42DC21E6.2010707@edwards.name>
Olav Junker Kj?r wrote:
> Dean Edwards wrote:
> 
>> That's not really the point. It could be any style setting that is 
>> assigned using script.
> 
> 
> The real problem is that styles assigned directly using 
> element.style.something (or using the style html attribute) cannot be 
> different for different medias. Print-events are not really a solution 
> for this problem, since you might also want the dynamic styles to be 
> different for e.g. handhelds vs. desktop browsers.
> 
> I think that dynamically assigning/removing classes rather than styles 
> is a cleaner separation between style and logic, which is just as 
> desirable for script code as it is for HTML.
> 

OK. Forget CSS for a moment (although this is still a consideration for 
me). What if I want to suspend a timer while the page is being printed?

-dean
Received on Monday, 18 July 2005 14:40:54 UTC

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