Bug Tracker

Opened 7 years ago

Closed 7 years ago

#11377 closed bug (wontfix)

outerSize() on input with type=hidden should be 0

Reported by: onemanbucket Owned by:
Priority: low Milestone: None
Component: css Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

Description

This is the commit in question: https://github.com/jquery/jquery/commit/80ad14bd14467c547c2867f2677ca581aa29bf33

JSfiddle example: http://jsfiddle.net/jL7Lr/

When setting a padding on INPUT, this css rule gets taken into account when using outerWidth() on input elements with type="hidden".

Browsers don't seem to honor padding on hidden type inputs when rendering the page so this seems like a bug to me!

Change History (2)

comment:1 Changed 7 years ago by onemanbucket

I should add, this broke jquery ui layout plugin for us (http://layout.jquery-dev.net/) and the obvious workaround is to create a css rule to set padding to 0 on input[type="hidden"]

comment:2 Changed 7 years ago by timmywil

Component: unfiledcss
Priority: undecidedlow
Resolution: wontfix
Status: newclosed

The change was made so we might provide useful values for hidden elements, rather than just 0. This is a big help for our users. It doesn't make as much sense with hidden inputs, but it is worth the tradeoff.

Note: See TracTickets for help on using tickets.