Skip to content

Commit

Permalink
See #290 - allows height overriding.
Browse files Browse the repository at this point in the history
Why:

* Another step to move away from aggressive merging.
  • Loading branch information
jakubpawlowicz committed Jan 1, 2017
1 parent b809a36 commit 78f4aaf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/properties/compactable.js
Expand Up @@ -125,6 +125,11 @@ var compactable = {
shortestValue: '0',
shorthand: true
},
'height': {
canOverride: canOverride.unit,
defaultValue: 'auto',
shortestValue: '0'
},
'list-style': {
components: [
'list-style-type',
Expand Down
4 changes: 4 additions & 0 deletions test/optimizer/advanced-test.js
Expand Up @@ -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}'
Expand Down

0 comments on commit 78f4aaf

Please sign in to comment.