Re: Implementor feedback on new elements in HTML5

On Tue, 01 Sep 2009 11:25:20 +0200, Maciej Stachowiak <mjs@apple.com>  
wrote:
> On Sep 1, 2009, at 2:18 AM, Cameron McCormack wrote:
>
>> Maciej Stachowiak:
>>> Perhaps it's time to start a spec on form control styling. In
>>> WebKit, we've found that CSS styling plus control-specific
>>> pseudo-elements can go a long way. Would such a spec more
>>> appropriately be an HTML WG product or a CSS WG product?
>>
>> Tangential thought: if we do this, I’d love it if XBL bindings could
>> expose a custom set of pseudo-elements that then could be mapped somehow
>> to the shadow content.
>
> XBL2 allows this:
> http://www.mozilla.org/projects/xbl/xbl2.html#the-xblpseudo

The caveat however is that the pseudo-element has to be predefined,  
because otherwise the rule will be dropped from the style sheet. You might  
want something like ::binding(ident) or some such.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Tuesday, 1 September 2009 09:31:21 UTC