W3C home > Mailing lists > Public > public-webapi@w3.org > July 2006

Re: printing events and web applications

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 17 Jul 2006 15:52:00 +0000 (UTC)
To: Dave Raggett <dsr@w3.org>
Cc: Lachlan Hunt <lachlan.hunt@lachy.id.au>, public-webapi@w3.org
Message-ID: <Pine.LNX.4.62.0607171550150.4826@dhalsim.dreamhost.com>

On Mon, 17 Jul 2006, Dave Raggett wrote:
> Slidy does indeed include a style sheet for print media but that isn't 
> sufficient. Currently I make slides visible/invisible by setting the 
> display and visibility properties from slidy.js, and likewise for 
> incrementally revealed items on each slide. Properties set via the CSS 
> DOM take precedence of style rules and hence even with @media print 
> style rules, the printer will only show the current slide and what is 
> currently revealed on that slide.

What you're doing is setting the properties on the "style" attribute, I 
assume. Naturally, these take precedence over (non-!important) rules in 
the stylesheets, because you haven't specified a media and they have 
specificity 1,0,0,0. However, the real problem here is that you are 
setting the style, not the semantics. What IMHO you should do is set, 
e.g., a class on the elements, and then use the stylesheet exclusively to 
set the presentation.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 17 July 2006 15:52:09 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:21 UTC