<4D9EFA14.7010807@lachy.id.au>
Current votes: None.
On 2011-04-08 11:23, James Graham wrote:
> FWIW I don't think we need cross-browser agreement here. In particular =
I
> think browsers should be free to implement <details> using a
> platform-native disclose widget if they like. These are not all alike
> e.g. OSX uses something like =E2=96=B8, Windows something like [+] (I t=
hink?)
> and Gnome (at least with the skin I have) something like =E2=96=B7.
Regardless of whether or not we agree on a common glyph to use for this,=20
we should at least agree on the applicable CSS styles used to achieve=20
the rendering, which is essential so that authors have an easier time=20
override them with their own styles.
If we use 'list-style-type', it seems reasonable to at least agree on a=20
common list-style-type value. Existing list-style-type values in CSS do=20
define applicable Unicode characters [1], which is why I suggested them.
One option is to define that the list-style-type 'disclosure-*' as magic=20
values that mean to render a UA specific/platform dependent widget. But=20
that differs from all other list-style-type values and doesn't seem=20
quite right.
CSS3-UI, however, uses the 'appearance' property to render native=20
looking controls.
In theory, native widgets could be achieved instead by using a new=20
'appearance' value like:
summary::marker { appearance: -x-disclosure; }
(Assuming the 'appearance' value handles the open/close states=20
automatically, and any animations that would be expected of native contro=
ls)
But that would make it slightly harder for authors to restyle as we=20
don't yet implement ::marker, and won't implement it until we have time=20
to do it properly for list-items in general (we don't want to a quick=20
hack just for <summary>).
Authors would have to do this:
summary::marker { appearance: normal; }
summary { list-style-image: url(...); }
[open] summary { list-style-image: url(...); }
[1] http://dev.w3.org/csswg/css3-lists/#glyph-counters
--=20
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/