W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > January to March 2004

Re: [WAI-IG] Stylesheet question

From: David Woolley <david@djwhome.demon.co.uk>
Date: Thu, 11 Mar 2004 21:58:25 +0000 (GMT)
Message-Id: <200403112158.i2BLwQZ03334@djwhome.demon.co.uk>
To: w3c-wai-ig@w3.org

> sheet.  I am testing someone else's site right now and am unsure of the
> 508 guidelines when it comes to inline styles vs css.  This site uses

Inline styles are normally CSS!

> both a css and in some pages includes inline styles.  What I would like
> to know is if this makes it non-compliant bc inline styles overwrite a
> user-defined style sheets?  I was unsure if inline styles actually
> overwrite what a user would set for their style sheet.  Any comments
> would be greatly appreciated.

I suggest you look at the CSS 2.1 draft.  The exact precedence of
different sources, including presentational attributes is, I think,
one of the key things they wanted to clarify.

Of the top of my head, a user !important style ought to be able to
override everything; in the sense that IE accessibilty options for
fonts and colours are an interface onto the user style sheet, it is
certainly the case that real implemenations override authors completely.

If by inline styles, you mean ....style="property: value; ..."..., the
real objection to them is that they encourage slopply coding practices
in which there is no consistent style, and are, essentially, no better
than using font elements.
Received on Thursday, 11 March 2004 17:28:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:27 UTC