Ticket #11436 (closed feature: invalid)
toggle() doesn't really toggle CSS "display" value
|Reported by:||cFreed||Owned by:|
When an element:
- has CSS "display: block"
- but is currently hidden, since it is a child of a hidden parent
Then toggle does NOT change its CSS to "display: none".
This behaviour finally conforms to what the doc says: <<If the element is initially displayed, it will be hidden; if hidden, it will be shown>>
But it is ambiguous, since we might expect toggle() to merely substitute none to display and vice-versa. Here is an example where this alternative behaviour should be preferred: http://jsfiddle.net/bT2uE/.
Don't know if it is bug or feature...
Thanks for your attention.
- Status changed from new to closed
- Resolution set to invalid