News for hackers. Stuff that matters.
Re:CSS3 Flip Switch by mmilo on Sunday February 05, 2012 @06:10AM (#3553826)
Personally I find this to be very inelegant. There is an incredible amount of HTML cruft and Javascript with a bunch of CSS hard-coded into it.

http://lab.simurai.com/css/umbrui/ has some awesome examples of how this sort of thing should be done, using nothing but native HTML 5 form inputs and CSS.

Re:CSS3 Flip Switch by mp3geek on Sunday February 05, 2012 @06:54AM (#3553877)
"Note that other browsers also allow Shadow DOM styling, but to keep things a little simpler, it's just WebKit for now"

Thats such a cop-out.

Re:CSS3 Flip Switch by mmilo on Sunday February 05, 2012 @07:03AM (#3553889)
Even if it only worked in webkit I'd still style native elements and let them fall back to their default look. Creating fake inputs using a bunch of nested divs gives me flashbacks of days when tables were used for layout.
Re:CSS3 Flip Switch by masklinn on Sunday February 05, 2012 @08:50AM (#3554029)
> Thats such a cop-out.

Is it really? It's an experiment (that's written on the page), it notes this can be achieved in other browsers but the author just wanted the experiment/demo out, and all the caveats are written up-front.

Re:CSS3 Flip Switch by p0larboy on Sunday February 05, 2012 @07:46AM (#3553922)
I totally agree simurai examples is so much better. no arguments there.