Add stop-opacity to unitless style properties
Marjan committed
Aug 6, 2015 at 16:46 UTC
0d8c3f9cba85ee160ccc0a8c8a6ccb16ca9aa755
4 files changed
+10
docs/js/react.js
+1
@@ -711,6 +711,7 @@ var isUnitlessNumber = {
711
712
// SVG-related properties
713
fillOpacity: true,
714
+ stopOpacity: true,
715
strokeDashoffset: true,
716
strokeOpacity: true,
717
strokeWidth: true
docs/tips/06-style-props-value-px.ko-KR.md
+4
@@ -18,6 +18,7 @@ React.render(<div style={divStyle}>Hello World!</div>, mountNode);
18
19
개발 하다보면 CSS 속성들이 단위 없이 그대로 유지되어야 할 때가 있을 겁니다. 아래의 프로퍼티들은 자동으로 "px"가 붙지 않는 속성 리스트 입니다:
20
21
+- `animationIterationCount`
22
- `boxFlex`
23
- `boxFlexGroup`
24
- `boxOrdinalGroup`
@@ -35,7 +36,10 @@ React.render(<div style={divStyle}>Hello World!</div>, mountNode);
36
- `opacity`
37
- `order`
38
- `orphans`
39
+- `stopOpacity`
40
+- `strokeDashoffset`
41
- `strokeOpacity`
42
+- `strokeWidth`
43
- `tabSize`
44
- `widows`
45
- `zIndex`
docs/tips/06-style-props-value-px.md
+4
@@ -18,6 +18,7 @@ See [Inline Styles](/react/tips/inline-styles.html) for more info.
18
19
Sometimes you _do_ want to keep the CSS properties unitless. Here's a list of properties that won't get the automatic "px" suffix:
20
21
+- `animationIterationCount`
22
- `boxFlex`
23
- `boxFlexGroup`
24
- `boxOrdinalGroup`
@@ -35,7 +36,10 @@ Sometimes you _do_ want to keep the CSS properties unitless. Here's a list of pr
36
- `opacity`
37
- `order`
38
- `orphans`
39
+- `stopOpacity`
40
+- `strokeDashoffset`
41
- `strokeOpacity`
42
+- `strokeWidth`
43
- `tabSize`
44
- `widows`
45
- `zIndex`
src/renderers/dom/shared/CSSProperty.js
+1
@@ -39,6 +39,7 @@ var isUnitlessNumber = {
39
40
// SVG-related properties
41
fillOpacity: true,
42
+ stopOpacity: true,
43
strokeDashoffset: true,
44
strokeOpacity: true,
45
strokeWidth: true,