`
hax
  • 浏览: 973578 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

ms is wrong AGAIN

    博客分类:
  • CSS
阅读更多
微软的Web工程师写了这篇文章Vendor Prefixes and JavaScript,文中写道:

引用
In Internet Explorer, Microsoft Lowercase the first Letter, which makes it consistent with the CSS capitalisation: msTransform


然而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,但是这仍是一个傻逼的例外。



【完】
0
0
分享到:
评论
1 楼 qgy18 2013-12-08  
之前遇到过这个问题,也吐槽了一遍:「最坑爹的是IE,css里可以用“-ms-transition-property”,js中对应的style,却是“el.style.msTransitionProperty”。QWrap在设置css的函数中,会先调用StringH.camelize函数处理属性名,会把“-ms-xxx-ooo”变成“MsXxxOoo”,IE不认!」

相关推荐

    eac3to V3.17

    * when a read error occurs, reading is tried again up to 3 times * (E-)AC3 frames with -0db dialnorm are now automatically patched to -31db * updated to newer libAften build -> fixes 44.1khz encoding ...

    计算机网络第六版答案

    At time t2 = t1 + L/R2, the router completes transmission and the entire packet is received at the receiving host (again, no propagation delay). Thus, the end-to-end delay is L/R1 + L/R2. 12. A ...

    au3反编译源码

    ^-- you may try to drag these again into the decompiler *.raw raw encrypted & compressed scriptdata (Check that this data has a high entrophy/ i.e. look chaotic) *.pak decrypted put packed dat ...

    Bochs - The cross platform IA-32 (x86) emulator

    [3078995] ROL/ROR/SHL/SHR modeling wrong when dest reg is 32 bit [2864794] BX_INSTR_OPCODE in "cpu_loop" causes crash in x86_64 host [2884071] [AIX host] prefetch: EIP [00010000] > CS.limit [0000...

    一个跨平台的CString源码

    // make it as forgiving as CString's version is. Thanks to // Igor Kholodov for noticing this. // - Added a specialization of std::swap for CStdString. Thanks // to Mike Crusader for ...

Global site tag (gtag.js) - Google Analytics