W3C home > Mailing lists > Public > www-style@w3.org > February 2014

Re: [css3-lists] padding-left on <ol> and <ul> elements

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 24 Feb 2014 16:56:16 -0800
Message-ID: <CAAWBYDDacTZ0JhyL+8G90L9xqf_DnJj5penmGddoY5-J=g8cRQ@mail.gmail.com>
To: Jonathan Kew <jfkthame@googlemail.com>
Cc: www-style list <www-style@w3.org>
On Sat, Feb 22, 2014 at 2:31 AM, Jonathan Kew <jfkthame@googlemail.com> wrote:
> In http://www.w3.org/TR/css3-lists/#html4, we have
>   /* Box Model Rules */
>   ol, ul {
>         display: block;
>         margin: 1em 0;
>         padding-left: 40px;
>   }
> which results in a fixed padding-left, whereas other dimensions (e.g. the
> margin here, as well as that on li::marker later) are expressed using 'em',
> so that they scale with font size.

I was just copying implementations when I wrote that.  (Or maybe I
copied it from the 2.1 stylesheet?)

> This can of course be modified by an author (as above), but ISTM that a
> change to the default UA stylesheet would result in better default behavior
> for naive content. Is there any possibility we could make such a change, or
> is it likely it would break too many things?

It would change the rendering of a *lot* of lists on the web, and
probably in a way that causes mild rendering glitches.

Received on Tuesday, 25 February 2014 00:57:03 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:19 UTC