浏览器厂商为什么要做出自己的CSS属性? [英] Why do browser vendors make their own css properties?

查看:115
本文介绍了浏览器厂商为什么要做出自己的CSS属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  • 为什么浏览器厂商自己做
    CSS属性,即使他们知道这些属性
    将无法通过W3C的验证之前批准和W3C?添加

  • 的目的是什么?是对自己的
    测试或为Web开发人员,或者
    展示浏览器功能
    走向世界,向W3C组织
    和W3C CSS的开发团队?

  • 是像测试版
    示范?

  • 如果我使用任何浏览器特定的现在
    他们可以删除该财产的
    从未来支持versions.will我需要编辑我的CSS在未来

例如:

https://developer.mozilla.org/en/CSS_Reference/Mozilla_Extensions

推荐答案


  • 负责任的浏览器厂商(大的人,但不包括IE),知道网络将是什么,几年后。我不知道你在哪里得到了不及格的一部分。他们只实施了几年的事情浏览器将支持

  • 这是关于给予的工具来设计未来的浏览器网页。

  • 是的,我们可以说这是一个测试版。

  • 是的,没有,这是不可能的,他们会删除扩展部分支持。

什么是W3C正在考虑的是大成。让我们梯度的例子:

What the W3C is thinking about is the syntaxis. Let's take gradient for an example:

-webkit-gradient(
    linear,
    left bottom,
    left top,
    color-stop(0.2, rgb(86,45,199)),
    color-stop(0.6, rgb(112,72,239))
)
-moz-linear-gradient(
    center bottom,
    rgb(86,45,199) 20%,
    rgb(112,72,239) 60%
)

这两个codeS生成相同的梯度。正如你所看到的,有没有标准的过程中,大成既混乱,不同的WebKit和Mozilla的浏览器的基础。

Both these codes generate the same gradient. As you can see, there's no standard procedure, the syntaxis is both confusing and different for webkit and mozilla based browsers.

但是,让我们在两三年想象,实施完成。现在,你只需要添加code的另一条线为标准。

But let's imagine in two or three years, the implementation is done. Now you just have to add another line of code for the standard.

gradient: center bottom #colorFrom opacityFrom #colorTo opacityTo;

现在两个引擎就会明白梯度说明书,如果它扩展后的那些规定,这最后一个将是一个跨preT。

Now both engines will understand the gradient statment and if it's specified after the extension ones, this last one will be the one to interpret.

这篇关于浏览器厂商为什么要做出自己的CSS属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆