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

Re: Extending Class Proposal

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Thu, 31 Jan 2013 15:53:42 -0800
Message-ID: <CABZUbM11kDH72kdAq9KF6F9mmHZt2XnmfxOWiYtFiBG1P79yJA@mail.gmail.com>
To: Philip Walton <philip@philipwalton.com>
Cc: www-style@w3.org
On 1/17/13, Philip Walton <philip@philipwalton.com> wrote:
> I recently posted a proposal on my website for how I think CSS could/should
> handle the concept of extending a base class:
> http://philipwalton.com/articles/the-future-of-oocss-a-proposal/
> Tab sent me a link to this discussion from August started by David Baron,
> and my proposal basically aligns with method (b) that he suggests:
> http://lists.w3.org/Archives/Public/www-style/2012Aug/0363.html
> I've spent a lot of time thinking about this problem and trying to make it
> work with in Sass; I've firmly come to the conclusion that preprocessors
> can't handle this all by themselves. The article goes into a lot of detail
> why.
Sass? No idea about that one.

> Anyway, I'd love to be part of any discussion on this topic, which is why
> I'm sending this to the list.
Use multiple classes where you think you need to extend.

.panel {
  position: absolute;

.cadillac-panel {
  border: 12px outset maroon;

<div class="panel cadillac-panel" ...>

var cp = document.querySelectorAll("cadillac-panel");

> TL;DR for the article:
Twitter: @xkit
Received on Thursday, 31 January 2013 23:54:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:25 UTC