diff options
Diffstat (limited to 'src/css/curCSS.js')
-rw-r--r-- | src/css/curCSS.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/css/curCSS.js b/src/css/curCSS.js index 06394f315..16104d893 100644 --- a/src/css/curCSS.js +++ b/src/css/curCSS.js @@ -13,6 +13,10 @@ export function curCSS( elem, name, computed ) { // getPropertyValue is needed for `.css('--customProperty')` (gh-3144) if ( computed ) { + // A fallback to direct property access is needed as `computed`, being + // the output of `getComputedStyle`, contains camelCased keys and + // `getPropertyValue` requires kebab-case ones. + // // Support: IE <=9 - 11+ // IE only supports `"float"` in `getPropertyValue`; in computed styles // it's only available as `"cssFloat"`. We no longer modify properties |