Bug Tracker

Modify

Ticket #11322 (closed bug: invalid)

Opened 16 months ago

Last modified 16 months ago

outer[Height/Width](true) improperly including negative margins

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

Description

I'm not sure this is actually a bug, because it depends on how you want height and width to be defined, and how margins affect those lengths.

This is problematic when the full outer height of an element is needed, but one of the margins is negative. The negative margin does not always affect the actual dimension of the element.

Here is a quick and dirty jsFiddle to demonstrate the values.  http://jsfiddle.net/wxxSQ/

Change History

comment:1 Changed 16 months ago by addyosmani

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to css

I've looked through your test case and I honestly don't feel like this is a bug. Should you need to handle full outer heights with a negative margin where you want custom behaviour to affect the actual element's dimensions, a cssHook could probably be used to handle your case.  http://api.jquery.com/jQuery.cssHooks/

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.