Closed JulianBirch closed 10 years ago
I don't think this is a bug either. I'm not sure what I good alternative would look like?
Well, I suspect that the only alternative is what jQuery does
https://github.com/jquery/jquery/blob/master/src/css.js#L56
This means a) having a general css query syntax b) keeping track of which elements default to which styles c) keeping track for the former display style of elements that have been hidden.
But it's an awful lot of work for an edge-case.
Because it sets the style display to blank, which effectively means revert to original.
This is what zepto does, so is arguably not a bug.