CSS widows property is unitless
Ref #836
Andrew Davey committed
Jan 10, 2014 at 10:32 UTC
095eea3241ff8498350361cfc36448e592a9a0a7
2 files changed
+4
-2
src/dom/CSSProperty.js
+1
@@ -27,6 +27,7 @@ var isUnitlessNumber = {
27
lineHeight: true,
28
opacity: true,
29
orphans: true,
30
+ widows: true,
31
zIndex: true,
32
zoom: true
33
};
src/dom/__tests__/CSSPropertyOperations-test.js
+3
-2
@@ -76,10 +76,11 @@ describe('CSSPropertyOperations', function() {
76
orphans: 4,
77
zIndex: 5,
78
zoom: 6,
79
- lineHeight: 7
79
+ lineHeight: 7,
80
+ widows: 8
81
})).toBe(
82
'fill-opacity:1;font-weight:2;opacity:3;orphans:4;z-index:5;zoom:6;' +
82
- 'line-height:7;'
83
+ 'line-height:7;widows:8;'
84
);
85
});
86