aboutsummaryrefslogtreecommitdiffstats
path: root/src/css/curCSS.js
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2017-09-18 11:59:50 -0400
committerGitHub <noreply@github.com>2017-09-18 11:59:50 -0400
commit94ddf620224d6555aaa7eaac20c583b15c6f50d8 (patch)
treec2d8281d7935a1da7c07ceef90bb7a0007d80308 /src/css/curCSS.js
parent8ea78caa8297e9fa5bf3d13b3d14609a24679f76 (diff)
downloadjquery-94ddf620224d6555aaa7eaac20c583b15c6f50d8.tar.gz
jquery-94ddf620224d6555aaa7eaac20c583b15c6f50d8.zip
CSS: Detect more WebKit styles erroneously reported as percentages
Ref 692f9d4db30c9c6c4f6bc76005cf153586202fa6 Fixes gh-3777 Closes gh-3778
Diffstat (limited to 'src/css/curCSS.js')
-rw-r--r--src/css/curCSS.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/css/curCSS.js b/src/css/curCSS.js
index 01ccad3ae..aa1414d26 100644
--- a/src/css/curCSS.js
+++ b/src/css/curCSS.js
@@ -1,11 +1,11 @@
define( [
"../core",
+ "./var/rboxStyle",
"./var/rnumnonpx",
- "./var/rmargin",
"./var/getStyles",
"./support",
"../selector" // Get jQuery.contains
-], function( jQuery, rnumnonpx, rmargin, getStyles, support ) {
+], function( jQuery, rboxStyle, rnumnonpx, getStyles, support ) {
"use strict";
@@ -35,7 +35,7 @@ function curCSS( elem, name, computed ) {
// but width seems to be reliably pixels.
// This is against the CSSOM draft spec:
// https://drafts.csswg.org/cssom/#resolved-values
- if ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) {
+ if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) {
// Remember the original values
width = style.width;