Closed ghost closed 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....
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.
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.
I've edited the issue title so it's clear what this issue is going to resolve.
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.
Like it says :)