304 points · by om2 · 10y ago · 72 comments
Backwards compatibility is tricky.
More reading: https://groups.google.com/a/chromium.org/forum/#!topic/exper...
There are a LOT of sites which once they get deployed, almost never get touched again. Either because they have no developers available or due to lack of time/interest.
So, what was a good way to achieve X at the time the site was developed is no longer be great five years later.
I've vouched for your comment because I think you were making an important point, but please choose your words more carefully in the future.
Only it doesn't work like that. Once it's there and used, it's there -- and whether it was meant or not, nobody gives a flying duck about.
Why do I want stuff that is "supposed to go away" in my code?
I'd rather just "not have it in the first place".
Now for better or worse, people still don't want to suddenly "break" the things that were actually broken all along. But thankfully we also don't want to add any more leniency with new features. So this is basically an example of the browsers declaring "no new hacks" and promising to slowly clean up the hacks that exist.
Will this mean that new features will take even longer to come out? What about features that aren't standardized, or in very early stages, heck, safari has lots of css properties that aren't even close to being implemented (such as -webkit-overflow-scrolling ).
Taking this route, either a browser can't implement something that isn't standardized, or when it is standardized, it'll be incompatible with a future standard (think flexbox and it's thousand implementations).
We could end up worse, to prevent sites from breaking, the standards body will choose a different property name for things browsers implemented before standardization, which means we'll get the same effect as vendor-prefixes but without readily visible names.
for example border radius gained wide and reliable use in production while it was still a prefix. And that was a good thing, every other way of implementing border radius was a hacky mess.
-feature555-flex-direction: column;
so that:
1. a browser vendor can introduce a feature and have it used even as an experiment
2. another browser vendor can decide to implement the same draft spec
3. if an incompatible change is made to the spec (flexbox!) then change the feature number
4. they should always be documented per feature (like RFC's).
this solution is trying to reduce the reliance on experimental features, not increase it!
The idea is that RFCs get written for each feature and are numbered.
They then get put out to see if they survive in the real world.
Unpopular features can be exterminated (falling back to whatever CSS is set up for browsers that never had that feature).
Most importantly alpha features can be implemented by many browsers, or removed, without confusion.