diff options
author | fecore1 <89127124+fecore1@users.noreply.github.com> | 2021-09-23 19:35:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-23 13:35:18 +0200 |
commit | efadfe991a5c287af561a9326bf1427d726c91c1 (patch) | |
tree | a8d28d325f3b40a6bac0637ccfa10ac5974dbdf7 /src/css.js | |
parent | 175db73ec7938e774d9e93d3afdfb35a24466b47 (diff) | |
download | jquery-efadfe991a5c287af561a9326bf1427d726c91c1.tar.gz jquery-efadfe991a5c287af561a9326bf1427d726c91c1.zip |
CSS: Trim whitespace surrounding CSS Custom Properties values
The spec has recently changed and CSS Custom Properties values are trimmed now.
This change makes jQuery polyfill that new behavior for all browsers.
Ref w3c/csswg-drafts#774
Fixes gh-4926
Closes gh-4930
Diffstat (limited to 'src/css.js')
-rw-r--r-- | src/css.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css.js b/src/css.js index c82a08c54..b50aa3d91 100644 --- a/src/css.js +++ b/src/css.js @@ -4,6 +4,7 @@ import nodeName from "./core/nodeName.js"; import rcssNum from "./var/rcssNum.js"; import isIE from "./var/isIE.js"; import rnumnonpx from "./css/var/rnumnonpx.js"; +import rcustomProp from "./css/var/rcustomProp.js"; import cssExpand from "./css/var/cssExpand.js"; import isAutoPx from "./css/isAutoPx.js"; import cssCamelCase from "./css/cssCamelCase.js"; @@ -24,7 +25,6 @@ var // except "table", "table-cell", or "table-caption" // See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display rdisplayswap = /^(none|table(?!-c[ea]).+)/, - rcustomProp = /^--/, cssShow = { position: "absolute", visibility: "hidden", display: "block" }, cssNormalTransform = { letterSpacing: "0", |