Live data from Hacker News

Incomplete List of Mistakes in the Design of CSS

wiki.csswg.org

1–10 of 111 posts

Re: Incomplete List of Mistakes in the Design of CSS

#3
post #2

This doesn't even get to the overall design of css in the first place and the problems it has... http://blog.vjeux.com/2014/javascript/react-css-in-js-nation...

The whole idea of using (at least) three separate languages (HTML, JavaScript, CSS) would seem weird if it were proposed de novo.

Consider that LaTeX manages to carry out all of those functions (layout, styling, and computation) using only one language.

Re: Incomplete List of Mistakes in the Design of CSS

#4
post #2

This doesn't even get to the overall design of css in the first place and the problems it has... http://blog.vjeux.com/2014/javascript/react-css-in-js-nation...

The whole idea of using (at least) three separate languages (HTML, JavaScript, CSS) would seem weird if it were proposed de novo . Consider that LaTeX manages to carry out all of those functions (layout, styling, and computation) using only one language.

React and jsx constructed dom using inline-styles brings the disparate technologies together in a composable way.

Re: Incomplete List of Mistakes in the Design of CSS

#7

> Box-sizing should be border-box by default. Didn't older versions of IE do precisely that, leading to endless frustration? I hate to say it but MS did something right for once.

Kind of an interesting history: https://en.wikipedia.org/wiki/Internet_Explorer_box_model_bu...

Re: Incomplete List of Mistakes in the Design of CSS

#8

> Box-sizing should be border-box by default. Didn't older versions of IE do precisely that, leading to endless frustration? I hate to say it but MS did something right for once.

I think you're wrong IE didn't do that

https://en.wikipedia.org/wiki/Internet_Explorer_box_model_bu...

The old IE old model is exactly box-sizing:border-box;

Re: Incomplete List of Mistakes in the Design of CSS

#9
> white-space: nowrap should be white-space: no-wrap and line wrapping behavior should not have been added to white-space > word-wrap/overflow-wrap should not exist. Instead, overflow-wrap should be a keyword on 'white-space', like nowrap (no-wrap)

Well, which is the mistake?

Post reply on HN