What's the point of "-safari" and "-webkit"?

  • mindfullsilence
  • Professor
  • Professor
  • User avatar
  • Joined: Aug 04, 2008
  • Posts: 846
  • Status: Offline

Post January 17th, 2010, 12:31 am

With all the new css3 properties, it seems kind of pointless for mozilla and safari to require us to type their engine kit in front of the property before declaring it. Why not just set it up to be the actual property?

Instead of this:
CSS Code: [ Select ]
div {
-webkit-border-radius: 5px;
-safari-border-radius: 5px;
border-radius: 5px /*future proofing*/
}
 
  1. div {
  2. -webkit-border-radius: 5px;
  3. -safari-border-radius: 5px;
  4. border-radius: 5px /*future proofing*/
  5. }
  6.  


Why not just all of them be this:
CSS Code: [ Select ]
div {
border-radius: 5px;
}
 
  1. div {
  2. border-radius: 5px;
  3. }
  4.  


Seems like it would be a lot easier for both the browser developers and the site designer. They wouldn't have to change it later down the road, and we wouldn't have to write 3 lines of code instead of 1. Anyone know what the point is?
Use your words like arrows to shoot toward your goal.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post January 17th, 2010, 12:31 am

  • tastysite
  • Proficient
  • Proficient
  • User avatar
  • Joined: Apr 09, 2008
  • Posts: 349
  • Loc: Brighouse, West Yorkshire, England
  • Status: Offline

Post January 29th, 2010, 11:04 am

safari is a webkit browser so -webkit should work for it, and does Ive done it.
Mabie they are just trying to make a huge point of the fact they support it and IE does not!:)
What bugs me is the fact that -webkit and -moz have different way for each level eg
-webkit-border-radius-top-left:20px;
but for moz you have to have
-moz-top-left-border-radius:20px;
mad!!!
^__^
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post January 29th, 2010, 2:25 pm

I don't know if this is true anymore, but definitions preceded by a hyphen were once consider proprietary switches and not actually intended for public use.
- dM
  • mindfullsilence
  • Professor
  • Professor
  • User avatar
  • Joined: Aug 04, 2008
  • Posts: 846
  • Status: Offline

Post January 30th, 2010, 9:20 pm

well, not sure they aren't intended for public use...I mean, they list them openly for the public to see:

https://developer.mozilla.org/En/CSS_Reference/Mozilla_Extensions
Use your words like arrows to shoot toward your goal.
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post January 31st, 2010, 4:11 am

I mean they're not intended to be standard conformant. The last time I encountered them was when IE6 was still being used and people wanted to use the border-box.

Code: [ Select ]
  -moz-box-sizing:  border-box;
  -webkit-box-sizing: border-box;
  1.   -moz-box-sizing:  border-box;
  2.   -webkit-box-sizing: border-box;


...at the time, Mozilla's literature said the switches were created for internal developmental use.
- dM
  • mindfullsilence
  • Professor
  • Professor
  • User avatar
  • Joined: Aug 04, 2008
  • Posts: 846
  • Status: Offline

Post February 1st, 2010, 11:39 am

oooooooh. Okay, well my question still stands. Why give it the prefix?
Use your words like arrows to shoot toward your goal.
  • mk27
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jun 09, 2009
  • Posts: 334
  • Status: Offline

Post February 1st, 2010, 12:46 pm

Possibly to disambiguate this:

Quote:
What bugs me is the fact that -webkit and -moz have different way for each level eg
-webkit-border-radius-top-left:20px;
but for moz you have to have
-moz-top-left-border-radius:20px;
mad!!!


BUT, also, it's not unusual for an API to use prefixes (like this) denoting new functions in development, when they are introduced in a new release. As DM points out, they start out known only to the developers, then when they are happy with it they make them public, and then later they may or may not drop the prefix.
Image

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 92 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.