Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why did Mozilla...safari have to make CSS more inconvenient with "-moz" and "-webkit" tags?

Odd question maybe, but can't find an explanation anywhere. Just don't see why the extra -moz and -webkit tags were necessary for new CSS3 properties when they could of kept it simple like the rest of the standard CSS properties. Wouldn't it be more simple to just use "box-shadow" for all browsers instead of using -moz-box-shadow and -webkit-box-shadow... Can someone explain why it is like this? I must be missing something.

like image 989
John Avatar asked Dec 21 '22 17:12

John


1 Answers

Vendor prefixes are there for properties which are proprietary or experimental.

Most of the CSS 3 specifications are not yet Candidate Recommendations, they are still being developed and subject to change.

Many of the properties covered by specifications which are Candidate Recommendations or more advanced are still being polished by the browser vendors who don't consider their own implementations ready.

The prefixes are dropped when the properties are considered ready for mainstream use. You'll see a specific example of this when Firefox 4 is released, when it starts supporting the standard box-shadow declaration rather than requiring -moz-box-shadow.

like image 134
Quentin Avatar answered Jan 19 '23 00:01

Quentin