메아리 저널

Object Oriented CSS

I have already mentioned that the fact that CSS is declarative is a good thing, but then I cannot understand that CSS does not have a sensible module mechanism. For example, you often have to use -moz-border-radius, -webkit-border-radius and -o-border-radius in addition to border-radius to ensure the compatibility. How about the background gradients? Both Webkit and Gecko support them but only with different syntaxes. Besides from the irregularity of web browsers, you also want to reuse the same style definitions in several other classes without duplicating them, only finding that you cannot do so without updating HTML.

There are several attempts to this annoying problem, including a well-known Sass, but what we really want to see is the solution which is built-in to CSS accepted by the web browsers. At a first glance, Object Oriented CSS seems a total crap that forces you to write a HTML in very verbose and hard-to-maintain ways, but it is in fact the best solution if you don’t want to use any server-side compilers. It is a tragedy, indeed.


노트들

  1. arachneng posted this
텀블러를 씁니다.