WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Interesting cause: http://contrastrebellion.com

for

From: John Foliot
Date: Jul 28, 2011 12:57PM


Jukka K. Korpela wrote:
>
> Technically, authors have no word on that. Browsers that support user
> stylesheets (as browsers generally do) do that irrespectively of
> anything that authors do. But I guess you mean that authors should
> design with user stylesheets in mind. For example, you should not, as
> an
> author, set just the content color of an element and not set the
> background. If you do, your page may fail to work when using a
> reasonable user style sheet, since the background color from it might
> be
> close to the content color specified in the page stylesheet.

Yes, exactly

>
> > in other words authors should avoid
> > inline styles whenever possible in favor of linked styles
>
> I don't quite see how that matters. Inline styles have their problems,
> but how would it make a difference to set, say, some properties for a
> single paragraph using <p style="..."> versus using <p id="foo"> and
> setting the styles for #foo in a style element or in an external
> stylesheet?

Discoverability mostly (coupled with ease of authoring/ease of use).

While most user style-sheets will be highly generic, there could exist
cases where a more defined style-sheet that was site specific (think
intranet for example) could be developed for specific users. Having all
those style declarations inside one document (rather than having to hunt
out and address inline styles) benefits the end user, as well as perhaps
any helping author (who might be working with the end user to develop the
custom CSS).

JF