mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #3831 from MadLittleMods/tab-size-unit-less
Add support for unitless tabSize/tab-size
This commit is contained in:
@@ -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`
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -29,6 +29,7 @@ var isUnitlessNumber = {
|
||||
opacity: true,
|
||||
order: true,
|
||||
orphans: true,
|
||||
tabSize: true,
|
||||
widows: true,
|
||||
zIndex: true,
|
||||
zoom: true,
|
||||
|
||||
Reference in New Issue
Block a user