[whatwg] Lists and legal documents

On Sat, Feb 6, 2010 at 4:18 PM, David Bruant <bruant at enseirb-matmeca.fr> wrote:
> One solution could be to use <style> element with "scoped" attribute to
> define a style only for those lists. This way, embedding a document will
> embed the style element. And if the styles within the <style> are exhaustive
> enough, there is no risk of overwriting by end user stylesheet, isn't it ?
>
> something like this :
>
> <section id="mylegaldocument">
> <style scoped>
> ? ?ol{}
> ? ?li{}
> </style>
>
> <!-- h1, blabla -->
>
> <ol>
> <li>
> <li>
> <li>
> </ol>
> </section>

Nah, rules in <style> elements have the same strength as any other
author rule, which means that *any* user rule will override it.  You
have to go !important, and even then it can be overridden by the user.
 In the end, *any* CSS-generated marker will fail if viewed in a
non-CSS UA, which still isn't acceptable for things like legal
documents.  You really do need to put the marker in the content.  CSS
can possibly help *afterwards* to make them look better, but it can't
be relied on for something like this.

~TJ

Received on Saturday, 6 February 2010 18:13:07 UTC