* [android] support 1px border & border-x-y-radius for android. Android now supports 1 px border. https://github.com/apache/incubator-weex/pull/9 border-x-y-radius works fine on Android, it is not supported by image on iOS.
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/687f3b14 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/687f3b14 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/687f3b14 Branch: refs/heads/master Commit: 687f3b14223a2fd2c1a15d44eb817f97ec2c8aed Parents: 9086af4 Author: YorkShen <[email protected]> Authored: Thu Mar 2 11:12:37 2017 +0800 Committer: YorkShen <[email protected]> Committed: Thu Mar 2 11:50:19 2017 +0800 ---------------------------------------------------------------------- doc/source/cn/references/common-style.md | 2 +- doc/source/references/common-style.md | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/687f3b14/doc/source/cn/references/common-style.md ---------------------------------------------------------------------- diff --git a/doc/source/cn/references/common-style.md b/doc/source/cn/references/common-style.md index 7abe9d3..96f6d9d 100644 --- a/doc/source/cn/references/common-style.md +++ b/doc/source/cn/references/common-style.md @@ -90,7 +90,7 @@ Weex 对äºé¿åº¦å¼ç®ååªæ¯æ*åç´ *å¼ï¼ä¸æ¯æç¸å¯¹åä½ï¼`em`ã - `border-top-right-radius {length}`ï¼ï¼éè´å¼, é»è®¤å¼ 0 -注æï¼ç®åå¨ `<image>` å `<text>` ç»ä»¶ä¸å°æ æ³åªå®ä¹ä¸ä¸ªæå 个è§ç `border-radius`ãæ¯å¦ä½ æ æ³å¨è¿ä¸¤ä¸ªç»ä»¶ä¸ä½¿ç¨ `border-top-left-radius`ã +注æï¼ç®åå¨ `<image>` ç»ä»¶ä¸å°æ æ³åªå®ä¹ä¸ä¸ªæå 个è§ç `border-radius`ãæ¯å¦ä½ æ æ³å¨è¿ä¸¤ä¸ªç»ä»¶ä¸ä½¿ç¨ `border-top-left-radius`ã该约æåªå¯¹iOSçæï¼Androidå¹¶ä¸åæ¤éå¶ã Weex çæ¨¡åç `box-sizing` é»è®¤ä¸º `border-box`ï¼å³çåç宽é«å å«å 容ãå è¾¹è·åè¾¹æ¡ç宽度ï¼ä¸å å«å¤è¾¹è·ç宽度ã http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/687f3b14/doc/source/references/common-style.md ---------------------------------------------------------------------- diff --git a/doc/source/references/common-style.md b/doc/source/references/common-style.md index 6cae589..14da29b 100644 --- a/doc/source/references/common-style.md +++ b/doc/source/references/common-style.md @@ -36,7 +36,6 @@ you can use the definition below in weex box model. - `border-right-style`: values `solid` | `dashed` | `dotted`, default value `solid` - `border-bottom-style`: values `solid` | `dashed` | `dotted`, default value `solid` - `border-width`: `length` type, non-negative, default value `0` - **DO NOT** use `border-width:1`. There is a default viewport `<viewport width="750">`, if the actual width of a device is 720px, then `border-width:1` will be `border-width:0.96`. As weex **do not** support sub-pixel, this border would not be rendered. - `border-left-width`: `length` type, non-negative, default value `0` - `border-top-width`: `length` type, non-negative, default value `0` - `border-right-width`: `length` type, non-negative, default value `0` @@ -54,7 +53,7 @@ you can use the definition below in weex box model. - `border-top-left-radius`: `length` type, non-negative, default value `0` - `border-top-right-radius`: `length` type, non-negative, default value `0` -Notes: The rule of border-radius for a specific corner such as `border-top-left-radius` is not currently supported for component `<image>` and `<text>`. +Notes: The rule of border-radius for a specific corner such as `border-top-left-radius` is not currently supported for component `<image>`in iOS. This only happens to iOS, it works fine on Android. Weex box model uses `border-box` as the default value of `box-sizing`, meaning the width and height properties includes content, padding and border, but not the margin.
