CSS width and height of hidden elements is different in opera from all other browsers
|Reported by:||jitter||Owned by:|
I made a test case on jsfiddle and all Opera versions and jQuery versions seem to be affected by this (excluding 1.4.3 because of the regressions).
Opera returns a different result from all other browsers (although I think returning 0px is correct when the display: none is set. No?).
For elements which have a height set via css and are hidden because of a display: none on the parent element we get FF: 10px, Opera: 0px
For elements which have no css styling and are hidden because of a display: none on the parent element we get FF: '' (previous versions auto), Opera: 0px (previous versions also 0px)
Change History (3)
comment:1 Changed 6 years ago by SlexAxton
- Cc miketaylr added
- Component changed from unfiled to offset
- Keywords width opera added
- Priority changed from undecided to low
- Status changed from new to open