W3C home > Mailing lists > Public > www-style@w3.org > January 2013

Re: Extending Class Proposal

From: Philip Walton <philip@philipwalton.com>
Date: Wed, 30 Jan 2013 15:35:24 -0800
Message-ID: <CAGRhNhWE4oM127WDCAjGiM7tWeAaVRDO9G=59435kD91asZbiQ@mail.gmail.com>
To: Behrang Saeedzadeh <behrangsa@gmail.com>
Cc: W3C CSS Mailing List <www-style@w3.org>
Behrang, thanks for taking the time to read the proposal and respond. I
have a few comments that I'd love to hear your thoughts on.

... I like the idea of having built-in class extension in CSS similar to
> SASS very much but I personally didn't like the syntax.

Is there anything in particular you don't like? I'd appreciate any
specifics you could give.

> Also being able to extend "rules" rather than classes might be even better.

I actually wasn't proposing extending classes, I think that will lead to
unexpected specificity issues (as I discuss in the article). I was
proposing defining a new abstract class selector and being able to extend

Also, I think the most compelling argument in favor of a new type of
selector (the abstract class selector) is being able to use it in
JavaScript. This will allow authors to not have to put base classes in the

For example:

This would be used to select all elements that have classes that extend the
button abstract class. This would be very powerful, but it wouldn't be
possible if you were just extending rules as you've suggested.
Received on Wednesday, 30 January 2013 23:35:51 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:23 UTC