W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > July to September 2008

Re: WCAG2 Conformance Questions

From: David Woolley <forums@david-woolley.me.uk>
Date: Mon, 25 Aug 2008 16:40:47 +0100
Message-ID: <48B2D27F.8000705@david-woolley.me.uk>
To: Ryan Jean <ryanj@disnetwork.org>
CC: w3c-wai-ig@w3.org

Ryan Jean wrote:
> It didn't work.

Unless you have a higher priority rule that sets some other display 
value, it certainly should work on any reasonably modern browser - in 
fact, the failure mode on older browsers, would be to suppress that text 
  not just in the printout.

Generally you will find that print media types are honoured on both 
actually printing and print previewing.

However, from a semantics point of view, it would be better to use 
something like:

<div class=".... navigation ....."...

and use a "." selector, e.g.

.navigation, .banneradvert {display: none}

or whatever other reason applies for the content being noise.
> Flint, MI
> 
> 
> -----Original Message-----
> From: David Woolley [mailto:forums@david-woolley.me.uk] 
> Sent: Monday, August 25, 2008 11:14 AM
> To: Ryan Jean
> Cc: w3c-wai-ig@w3.org
> Subject: Re: WCAG2 Conformance Questions
> 
> Ryan Jean wrote:
>>
>> What does the media="print" do?
>>
> 
> Assuming the syntax is good, it causes the enclosed style rules only to 
> apply when printed.  Typically you code all your navigation stuff as 
> display:none.
> 


-- 
David Woolley
Emails are not formal business letters, whatever businesses may want.
RFC1855 says there should be an address here, but, in a world of spam,
that is no longer good advice, as archive address hiding may not work.
Received on Monday, 25 August 2008 15:40:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:28 GMT