Re: CSS validity

On 12 Jul 2004, at 14:37, Niko Holopainen, Lomaosake.fi wrote:

> I'm sending this message due to getting accessibility validation 
> errors with CSE Validator

You should probably have a search of 
comp.infosystems.www.authoring.html for that tool. It isn't actually a 
validator.

> <a href="http://jigsaw.w3.org/css-validator/"><img 
> style="border:0;width:88px;height:31px" 
> src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" 
> /></a>
>
> The latter one causes accessibility validation errors since unlike the 
> first one, the image dimensions have been assigned with a style rule.

Validation, in the context of (X)HTML, refers specifically to its 
conformance to the DTD. The width and height attributes are distinctly 
optional. This is not a validation error.

> Thus my question is, what to do about it?

Either change the (X)HTML to use the attributes, or ignore CSE's 
warning. I'm not aware of any accessibility issues regarding specifying 
the width and height using CSS instead of (X)HTML, or of not specifying 
them at all. I don't believe WCAG makes any mention of them either.

> If I change the image code (simple enough) the image with the assorted 
> text won't be original/authentic

I'm not aware of any license restriction on the images provided by the 
validation service which demand they only be included using the 
specific (X)HTML the service outputs.


--
David Dorward
      <http://dorward.me.uk/>
<http://blog.dorward.me.uk/>

Received on Monday, 12 July 2004 09:52:17 UTC