In the same way that the HTML5 parsing algorithm “re-writes” HTML to make tags close correctly in the DOM in order to ensure interoperability, this Labs release tests reacting to certain -webkit- prefixed CSS properties as though they were -o- prefixes in order that users are not exposed to authoring errors. Using single-vendor code on the World Wide Web that results in non-interoperability is an authoring error. Prefer graceful error recovery to hard failure, so that users are not exposed to authoring errors.ĬSS is not HTML, of course. Automatic error recoveryĮrror handling should be defined so that interoperable implementations can be achieved. There are many reasons for missing out some prefixes - but the user is always the loser. Some developers erroneously assume that mobile development equals iOS devices, so only use -webkit- prefixes because they don’t know or don’t care about other browsers. Some specifications seem to take forever to get to the Candidate Recommendation stage at the W3C, after which vendors are supposed to unprefix their implementations. It’s easy to miss out a vendor prefix when copying and pasting multiple lines, or because a vendor doesn’t support a certain feature while you’re developing. This leads to a reduced user experience on Opera and Firefox, which don’t receive the same shiny effects such as transitions, gradients and the like, even if the browser supported those effects. This is because through our site compatibility work, we have experienced that many authors of (especially mobile) sites only use -webkit- prefixed CSS, thereby ignoring other vendor prefixes and not even including an unprefixed equivalent. Opera, along with Mozilla, announced at a CSS Working Group meeting ( minutes) that we would support some -webkit- prefixes. The CSS Working Group recommends that implementations use a vendor-prefixed syntax for such features, including those in W3C Working Drafts. Prior to a specification reaching the Candidate Recommendation stage in the W3C process, all implementations of a CSS feature are considered experimental. CSS Snapshot 2010 extended the definition: CSS vendor prefixes were introduced in CSS 2.1 for vendor-specific extensions with the warning that authors should avoid vendor-specific extensions.
0 Comments
Leave a Reply. |