W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2010

[whatwg] Lists and legal documents

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sat, 6 Feb 2010 12:35:52 -0600
Message-ID: <dd0fbad1002061035g17e66664m9e030deb67580ab1@mail.gmail.com>
On Sat, Feb 6, 2010 at 12:17 PM, Markus Ernst <derernst at gmx.ch> wrote:
> Tab Atkins Jr. schrieb:
>>
>> On Sat, Feb 6, 2010 at 4:31 AM, Markus Ernst <derernst at gmx.ch> wrote:
>>>
>>> o ...
>>> o ...
>>
>> Simply putting the checkbox as the first content in the <li> works
>> well for me there. ?You can then suppress the list-style or not.
>
> No, as multiline label text will render as:
>
> o ...
> .....
>
> A (I think) simple task, as rendering a radio button and label as
>
> o ...
> ?...
>
> is a hard task to achieve (as any kind of styling that is done with a
> combination of indents and tabulators in layout programs).
>
> I admit that this is a styling issue (and already tried to post this to the
> CSS group months ago, but found that this group does not accept gmx mail
> addresses), mainly due to the lack of tabulators in HTML and CSS. But it is
> in the same category as the problem Anne posted: A list-style appearance
> with the list item being part of the content.

Ah, gotcha.  True, then.  This would have been easier with the
display:list-item-marker value, but that got dropped in favor of a
proper ::marker pseudoelement.  It's possible that this should be
revived and magicked into working appropriately, essentially moving
the item into the content of the ::marker.  Alternately, some magic by
way of the Generated and Replaced Content module could be employed.
(I do intend to try and revive that module.)

In any case, though, this does indeed seem to be a styling issue.  We
can move the styling-relevant parts of the discussion over to
www-style.  Within the bounds of HTML, though, I think that the advice
as I phrased it is optimal - just use an <ol>, suppress the
list-style, and put the marker in the content.

~TJ
Received on Saturday, 6 February 2010 10:35:52 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:21 UTC