ms is wrong AGAIN

微软的Web工程师写了这篇文章[url=http://blogs.msdn.com/b/thebeebs/archive/2012/01/11/with-vendor-prefixes-what-is-the-javascript-equivalent-of-ms.aspx]Vendor Prefixes and JavaScript[/url],文中写道:

[quote]In Internet Explorer, Microsoft Lowercase the first Letter, which makes it consistent with the CSS capitalisation: msTransform
[/quote]

然而ms这个拼法其实全然是 inconsistent。看看其他厂商的vendor prefix全部是首字母大写的(webkit同时支持大写和小写)。

所以我在该文之后留言:

No! ms is wrong (AGAIN)!!!

The first letter of vendor prefix should be Capitalized! It follows a very simple rule that any char after dash in CSS property name should be transform to uppercase.

ms BREAK this rule, and that means you can NOT diff the vendor prefixed prop -ms-xxx with the normal prop ms-xxx. Though there is no such property named ms-xxx, but it's still a bad exception.


自己给自己翻译如下:


扯淡!ms又错了!!!(我为什么要说“又”?)

vendor前缀的第一个字母应该大写!这规则很简单,CSS属性名中所有的短横线之后的那个字母应该转换为大写。

ms违背了这规则,这意味着你无法区分一个厂商前缀属性 -ms-xxx 和一个正常属性 ms-xxx。尽管现在并没有属性叫 ms-xxx,但是这仍是一个傻逼的例外。


【完】
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值