[whatwg] Styling form controls (Was: Re: Forms-related feedback)
ian at hixie.ch
Wed Dec 4 10:30:59 PST 2013
On Tue, 3 Dec 2013, Dimitri Glazkov wrote:
> > >
> > > Yeah, the idea is you'd bind to the scroll box to change the whole
> > > scroll UI, but you could also then override specific pseudos of the
> > > scroll box to style subparts of the default (or custom) scrollbox
> > > UI. This part was never very well developed though since the core of
> > > XBL2 was never picked up. But I think the same approach should
> > > probably still work with the newer Web components work, no? It needs
> > > to be specified and implemented...
> > Web components can't define pseudo elements. So no.
> > This sadly also means that you can't write a CSS which styles the
> > default UA UI if that is used, and styles an attached Shadow DOM if
> > that is used.
> That's simply not true. Where'd you get that?
The key feature here isn't defining _new_ pseudo-elements, but being able
to map specific elements in the shadow tree to predefined standard
pseudo-elements, in particular, the same pseudo-elements that the standard
If such a feature is available, then the HTML spec could list which of the
standard pseudos each default binding is expected to expose, and then
authors could style subparts of standard controls easily.
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg