[whatwg] Lists and legal documents

Tab Atkins Jr. jackalmage at gmail.com
Sat Feb 6 10:35:52 PST 2010


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


More information about the whatwg mailing list