Friday, January 31, 2025
HomeProgrammingThe Errors Of CSS | CSS-Methods

The Errors Of CSS | CSS-Methods


Absolutely you’ve seen a CSS property and thought “Why?” For instance:

Why doesn’t z-index work on all components, and why is it “-index” in any case?

Or:

Why do we want interpolate-size to animate to auto?

You aren’t alone. CSS was born in 1996 (it could legally order a beer, !) and was initially thought of a technique to model paperwork; I don’t assume anybody imagined every thing CSS can be anticipated to do almost 30 years later. If we had a time machine, many issues can be carried out in another way to match conventions or to make extra sense. Heck, even the CSS Working Group admits to wanting a time-traveling contraption… within the specs!

NOTE: If we had a time machine, this property wouldn’t must exist.

CSS Values and Models Module Stage 5, Part 10.4

If by some stroke of alternative, I used to be given free rein to rename some issues in CSS, a few concepts come to thoughts, however if you would like extra, you could find an ongoing record of errors made in CSS… by the CSS Working Group! Take, for instance, background-repeat:

Not fairly a mistake, as a result of it was an affordable default for the 90s, however it might be extra useful since then if background-repeat defaulted to no-repeat.

Proper now, individuals are questioning if CSS Flexbox and CSS Grid ought to share extra syntax in mild of the upcoming CSS Masonry structure specs.

Why not repair them? Sadly, it isn’t as simple as fixing one thing. Individuals already constructed their web sites with these quirks in thoughts, and altering them would break these websites. Contemplate it technical debt.

Because of this I believe the CSS Working Group deserves an onslaught of reward. Designing new options which can be immutable as soon as shipped must be a nerve-wracking expertise that includes inexact science. It’s not that we haven’t seen the specs change or evolve prior to now — they most definitely have — however the worth of getting issues proper the primary time is a beast of burden.


Direct Hyperlink →

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments