Re: printing events and web applications

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