Re: native elements versus scripted

On Wed, Apr 7, 2010 at 4:33 PM, Maciej Stachowiak <mjs@apple.com> wrote:
>
> On Apr 6, 2010, at 11:19 PM, Silvia Pfeiffer wrote:
>
>>
>> I'm curious - would the introduction of pseudo-classes also apply to
>> the video and audio element controls?
>
> That's certainly a possibility. Right now, the solution for custom-looking
> form controls is to fall back completely into JS. However, at least in
> WebKit, the built in media element controls are implemented in the rendering
> engine, so it's definitely possible to offer the ability to style them. That
> would provide an interesting tool for content authors - they could get a
> custom look/branding for video controls without having to reimplement all
> the control logic in JavaScript.

And without having to worry about implementing accessibility in
JavaScript, since the native browser controls already provide for
that.

Cheers,
Silvia.

Received on Wednesday, 7 April 2010 08:00:42 UTC