[whatwg] Styling <details>

fantasai fantasai.lists at inkedblade.net
Wed Jan 2 08:25:32 PST 2013


On 04/08/2011 05:05 AM, Lachlan Hunt wrote:
>
> One option is to define that the list-style-type 'disclosure-*' as magic values that mean to render a UA specific/platform
> dependent widget.  But that differs from all other list-style-type values and doesn't seem quite right.

The CSSWG discussed and agreed to add these to the draft back in 2011.
Tab still hasn't edited it in, apparently. *pokes Tab*
   http://lists.w3.org/Archives/Public/www-style/2011Apr/0646.html

> CSS3-UI, however, uses the 'appearance' property to render native looking controls.
>
> In theory, native widgets could be achieved instead by using a new 'appearance' value like:
>
>    summary::marker { appearance: -x-disclosure; }
>
> (Assuming the 'appearance' value handles the open/close states automatically, and any animations that would be expected of
> native controls)

The only value of 'appearance' that actually works IIRC is 'none'.
I'm not sure I'd recommend it as a good way forward for anything
since it's not clear how other values are supposed to work.

~fantasai



More information about the whatwg mailing list