]> source.dussan.org Git - jquery.git/commitdiff
CSS: Don't auto-append "px" to possibly-unitless CSS grid properties
authorBert Zhang <enbo@users.noreply.github.com>
Wed, 29 Aug 2018 13:54:27 +0000 (06:54 -0700)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Wed, 29 Aug 2018 13:54:27 +0000 (15:54 +0200)
This commit adds some CSS grid-related properties to jQuery.cssNumber.

Fixes gh-4007

src/css.js

index c3afb0ab77825303d43b1169fd54938b15e53058..aea0ef2c5e05ce38d3de9d910efcf02e78b084c0 100644 (file)
@@ -194,6 +194,13 @@ jQuery.extend( {
                "flexGrow": true,
                "flexShrink": true,
                "fontWeight": true,
+               "gridArea": true,
+               "gridColumn": true,
+               "gridColumnEnd": true,
+               "gridColumnStart": true,
+               "gridRow": true,
+               "gridRowEnd": true,
+               "gridRowStart": true,
                "lineHeight": true,
                "opacity": true,
                "order": true,