impressivewebs / CSS3-Click-Chart

Example Code and Support Chart for new CSS Features
https://css3clickchart.com
143 stars 29 forks source link

CSS3 cycle() support -- Edit: Now called toggle() #7

Closed ghost closed 12 years ago

ghost commented 12 years ago

Like it says :)

impressivewebs commented 12 years ago

Ah, interesting. I honestly didn't know about that:

http://dev.w3.org/csswg/css3-values/#cycle

However that page says:

The following features are at-risk and may be dropped during the CR period: ‘calc()’, ‘cycle()’, ‘attr()’.

Of course, I have no idea why "calc" and "attr" are "at risk" since they are both great features....

ghost commented 12 years ago

True enough - and that page used to describe min() and max() functions as well - I did a jQuery polyfill for those at https://github.com/indyarmy/jquery.cssMinMax.plugin/ but it looks like they've been removed from the spec :(

I never learn though, so I'll have a cycle() polyfill today sometime too.

impressivewebs commented 12 years ago

The cycle() function has now been renamed to toggle():

http://dev.w3.org/csswg/css3-values/#toggle

So it looks like this could be added.

impressivewebs commented 12 years ago

I've edited the issue title so it's clear what this issue is going to resolve.

impressivewebs commented 12 years ago

I've added toggle().

No idea about browser support, or even if it's going to stay in the spec, but I guess the fact that it was renamed suggests it has a future.