Skip to content

Commit da4d609

Browse files
mikesherovdmethvin
authored andcommitted
Followup #12018, fix a test fail converting to pixels. Close jquerygh-874.
1 parent 569d064 commit da4d609

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/css.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ if ( window.getComputedStyle ) {
290290
// Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right
291291
// Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels
292292
// this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
293-
if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) {
293+
if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) {
294294
width = style.width;
295295
minWidth = style.minWidth;
296296
maxWidth = style.maxWidth;

0 commit comments

Comments
 (0)