See #290 - allows `height` overriding.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Sun, 1 Jan 2017 11:19:47 +0000 (12:19 +0100)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Sun, 1 Jan 2017 11:21:39 +0000 (12:21 +0100)
Why:

* Another step to move away from aggressive merging.

lib/properties/compactable.js
test/optimizer/advanced-test.js

index ca0657d..ec5549d 100644 (file)
@@ -125,6 +125,11 @@ var compactable = {
     shortestValue: '0',
     shorthand: true
   },
+  'height': {
+    canOverride: canOverride.unit,
+    defaultValue: 'auto',
+    shortestValue: '0'
+  },
   'list-style': {
     components: [
       'list-style-type',
index d89a81c..f934131 100644 (file)
@@ -88,6 +88,10 @@ vows.describe('advanced optimizer')
   )
   .addBatch(
     optimizerContext('unit compacting', {
+      'height': [
+        'div{height:1rem;height:16px}',
+        'div{height:16px}'
+      ],
       'width': [
         'div{width:1rem;width:16px}',
         'div{width:16px}'