Merge pull request #3831 from MadLittleMods/tab-size-unit-less

Add support for unitless tabSize/tab-size
This commit is contained in:
Paul O’Shannessy
2015-05-07 13:09:17 -07:00
3 changed files with 7 additions and 0 deletions
@@ -18,11 +18,15 @@ React.render(<div style={divStyle}>Hello World!</div>, mountNode);
개발 하다보면 CSS 속성들이 단위 없이 그대로 유지되어야 할 때가 있을 겁니다. 아래의 프로퍼티들은 자동으로 "px"가 붙지 않는 속성 리스트 입니다:
- `boxFlex`
- `boxFlexGroup`
- `columnCount`
- `fillOpacity`
- `flex`
- `flexGrow`
- `flexPositive`
- `flexShrink`
- `flexNegative`
- `fontWeight`
- `lineClamp`
- `lineHeight`
@@ -30,6 +34,7 @@ React.render(<div style={divStyle}>Hello World!</div>, mountNode);
- `order`
- `orphans`
- `strokeOpacity`
- `tabSize`
- `widows`
- `zIndex`
- `zoom`
+1
View File
@@ -34,6 +34,7 @@ Sometimes you _do_ want to keep the CSS properties unitless. Here's a list of pr
- `order`
- `orphans`
- `strokeOpacity`
- `tabSize`
- `widows`
- `zIndex`
- `zoom`
+1
View File
@@ -29,6 +29,7 @@ var isUnitlessNumber = {
opacity: true,
order: true,
orphans: true,
tabSize: true,
widows: true,
zIndex: true,
zoom: true,