Live data from Hacker News

What if we ditched CSS?

news.ycombinator.com

1–7 of 7 posts

What if we ditched CSS?

#1
Clock: http://codepen.io/relfor/pen/eJZQab?editors=001

TodoMVC: http://codepen.io/relfor/full/VeaVNe/

Hello World: http://codepen.io/relfor/pen/bEpONL?editors=001

Drawer Menu: http://codepen.io/relfor/full/BjKvNm/

Re: What if we ditched CSS?

#3

While they're cool demos, you've definitely not ditched CSS, the markup is full of style attributes

Hey, The CSS in markup is only for the TodoMVC demo. It contains styling of the placeholder psuedo selector, and inline styling of a link to override the default style of a link.

The other 3 demos do not have CSS.

Re: What if we ditched CSS?

#4
post #3

While they're cool demos, you've definitely not ditched CSS, the markup is full of style attributes

Hey, The CSS in markup is only for the TodoMVC demo. It contains styling of the placeholder psuedo selector, and inline styling of a link to override the default style of a link. The other 3 demos do not have CSS.

This is the number 11 from the clock

    11
Nope, no css here.

Re: What if we ditched CSS?

#5
post #4
post #3

Earlier quoted context omitted.

Hey, The CSS in markup is only for the TodoMVC demo. It contains styling of the placeholder psuedo selector, and inline styling of a link to override the default style of a link. The other 3 demos do not have CSS.

This is the number 11 from the clock 11 Nope, no css here.

Oops I thought you meant within the HTML file itself.

CSS means "Cascading Stylesheets" Using the framework the developer does not have write CSS. What you pointed out is the "style" attribute. Obviously the engine has to use the "style" attribute to communicate to the browser about the positions and remaining computed style properties.

Re: What if we ditched CSS?

#6
post #5
post #4

Earlier quoted context omitted.

This is the number 11 from the clock 11 Nope, no css here.

Oops I thought you meant within the HTML file itself. CSS means "Cascading Stylesheets" Using the framework the developer does not have write CSS. What you pointed out is the "style" attribute. Obviously the engine has to use the "style" attribute to communicate to the browser about the positions and remaining computed style properties.

http://stackoverflow.com/questions/2612483/whats-so-bad-abou...

Re: What if we ditched CSS?

#7
post #5
post #4

Earlier quoted context omitted.

This is the number 11 from the clock 11 Nope, no css here.

Oops I thought you meant within the HTML file itself. CSS means "Cascading Stylesheets" Using the framework the developer does not have write CSS. What you pointed out is the "style" attribute. Obviously the engine has to use the "style" attribute to communicate to the browser about the positions and remaining computed style properties.

Your post said "What if we ditched CSS?" with zero other context.

The links do use CSS, and there are non css options available in most rendering engines for such things, e.g. canvas/svg.

Personally I see no advantage to using things like lay.js in the top linked example over SVG, and further feel that a lot of the hate driven towards CSS stems from misunderstanding or misuse. Not that it is perfect, far from it, but to proxy it behind another language can only ever add limitations.

Compass/SASS solve most of my shallow verbosity based gripes tbh.