I am curious, as to why some browsers need a special invitation for the same css layout command. Can anyone enlighten me?
Example: CSS-formatting: box-sizing: border-box; (Please consider the border of my box for dimensions!)
Now here come firefox and safari, and they need a special invitation:
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
To a simple cat like myself this seems like saying:
I mean... why? It is exactly the same syntax! Why do I have to tell the same stuff to a specific browser? I would understand if they need a different syntax.. but exactly the same?! Do they like to hear their names being called?
CSS vendor prefixes, also sometimes known as or CSS browser prefixes, are a way for browser makers to add support for new CSS features before those features are fully supported in all browsers.
It look different because each browser has his own CSS style defined. This styles apply to the HTML markup when no other CSS is defined inline or comes from an external CSS file.
This is the result of different browser engines supporting different things. Those directives simply are aimed at telling the browser's rendering engines that you are looking to use a feature that is still in development/testing or not standard in the CSS specification. Note that not all browsers use different rendering engines.
because these properties are not starndardized by the W3C, they are still in draft, therefore vendors implement their own version - that uses prefixes to avoid clashes with other browsers implementation, or the final implementation after the specs are finalized.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With