Re: RE: [css3] Suggestion: Selector variables or "synonyms"

> This basically illustrate to core problem. CSS should not be changed
> to allow for the handling of inconsistency's in HTML (or other
> languages) coding. CSS should be developed in a way that what it is
> meant to style is properly coded Semantic HTML. Changing CSS to
> accommodate a problem that solely rest in the arena of HTML is wrong.

Depending on the use case in question, this does NOT solely rest in the area of HTML, for example when talking about ways to improve CSS efficiency and understandability (which might be supported by proposed selector vars).

I also doubt that focussing on ONLY either HTML or CSS is really helpful – I wonder if there was any way to include style sheets in HTML then. Web development as a process almost implies HTML and CSS changes, and the cost of solution (of HTML/XML problems) might very well be decreased by a CSS solution – and why shouldn't it, especially when the cost of the (implementation) solution can be quite low?

(Again, I do not talk about private pet projects where a single author has full control about all documents. Revising and improving ancient multi-client multi-domain projects is extremely expensive and a major pain […], and I claim that CSS can help here.)


> http://css-class.com/test/demos/constant/original.css
> 
> http://css-class.com/test/demos/constant/propose.css
> 
> http://css-class.com/test/demos/constant/original-added.css
> 
> original.css = 4.62 kb
> propose.css = 4.75 kb
> original-added.css = 6.70 kb
> 
> But considering that this can apply to div#navigation, div#menu and
> nav in one hit. So this is sort of what Jens' was seeking.

NO, absolutely not.

The minimum I proposed would at least and already allow for about 10 % file size SAVINGS, see

* http://css-class.com/test/demos/constant/original.css (4,740 bytes)
* http://hell.meiert.org/temp/selector-vars.css (4,177 bytes)


However, I didn't discover any concerns about a first draft I should probably create, so I'll try to do exactly that soon.

-- 
Jens Meiert
http://meiert.com/en/

Received on Friday, 15 February 2008 12:25:31 UTC