This is not about Object Oriented CSS. There is no such thing. However, I just got suckered into reading an article that purported to give a glimpse into the next generation CSS which he claimed was object oriented. I won’t even bother to repeat the URL. It was downright silly.
First, to be object oriented, CSS would have to be a programming language. CSS is only a way to attach attributes to something. It has no code. It has no methods. It has no encapsulation. It has none of the the things that make a programming language object oriented.
The technique the author was trying to pass off as object oriented is the well known approach that has been in use for years where an HTML element gets multiple styles and each style adds something semantic. For example I have a few styles I use for debug that add borders to any element. I would hardly classify that as object oriented CSS.
Rubbish.
YUI started using this approach a long time ago. And I have never heard any of the Yahoo engineers or architects refer to this technique as object oriented.
Related Articles
No user responded in this post
Leave A Reply
Please Note: Comment moderation maybe active so there is no need to resubmit your comments