mirror of
https://github.com/jquery/jquery.git
synced 2026-02-08 08:45:36 -05:00
Followup #12018, fix a test fail converting to pixels. Close gh-874.
This commit is contained in:
committed by
Dave Methvin
parent
569d064fc9
commit
da4d609297
@@ -290,7 +290,7 @@ if ( window.getComputedStyle ) {
|
||||
// Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right
|
||||
// Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels
|
||||
// this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
|
||||
if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) {
|
||||
if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) {
|
||||
width = style.width;
|
||||
minWidth = style.minWidth;
|
||||
maxWidth = style.maxWidth;
|
||||
|
||||
Reference in New Issue
Block a user