Skip to main content

Bug Tracker

Side navigation

#6176 closed bug (invalid)

Opened February 25, 2010 03:31PM UTC

Closed February 26, 2010 05:45PM UTC

hidden and elements with border

Reported by: hbo Owned by:
Priority: Milestone: 1.4.1
Component: css Version: 1.4.1
Keywords: filter hidden border Cc: codersdojo@it-agile.de
Blocked by: Blocking:
Description

Setup: Firefox 3.5.8 on Linux

Situation: A div-element with a border was hided by jQuery. The border was defined in a css. Is is not visible, but got a width and height of -3px. This is what firebug reports.

If we search for a hidden element, jQuery looks after a height or width equal to 0. In this case, it won't detect an element, because the size is negative. If we change the comparator in the hidden filter function to less 1, it will work.

Attachments (0)
Change History (1)

Changed February 26, 2010 05:45PM UTC by john comment:1

component: selectorcss
resolution: → invalid
status: newclosed

Wait - what? Why is the height/width negative? That doesn't make sense - are you defining a negative border?