Re: [WAI-IG] Stylesheet question

> 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