[Webkit-unassigned] [Bug 107380] Specifying the width/height of an input element modifies its margin

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 25 13:05:39 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=107380





--- Comment #8 from Mike Sherov <mike.sherov at gmail.com>  2013-02-25 13:08:02 PST ---
So, the use case is:

I am changing an element to "position: absolute" so I can animate its clip property. In order to do that, I need to lock in the element's width, in case it was width auto when it was relative or static and expanded to fill its container.

If the element happens to be an input, this then changes the margins of the input. I can work around this in 1 of 2 ways:
1. set the margin before setting the width, but this is less than ideal because I can't get the *computed* margin, only the used margin (from getComputedStyle), so I lose any auto-y goodness.
2. I can detect that it's an input, and assume it's got this intrinsic thing going on, but that seems like it comes with its own set of edge cases.

I currently have done #1 as my workaround.

I'll respond to the  IRC conversation in another comment. Thanks again for looking into this, guys!

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list