Bug Tracker

Opened 10 years ago

Closed 10 years ago

#6176 closed bug (invalid)

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@…
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.

Change History (1)

comment:1 Changed 10 years ago by john

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?

Note: See TracTickets for help on using tickets.