Re: [css3-content] Structural pseudo-elements

(11/07/20 17:45), Anne van Kesteren wrote:
> On Wed, 20 Jul 2011 11:29:25 +0200, Roland Steiner
> <rolandsteiner@google.com> wrote:
>> reading through http://www.w3.org/TR/css3-content/#pseudo-elements,
>> I'd have a few questions and suggestions:
>
> We abandoned that draft. The new work can be found here:
> http://dev.w3.org/csswg/css3-content/
>
> Shadow DOM / XBL / some such will probably take over from have lots of
> pseudo-elements.

OK. But ::inside/::outside seems like an understandable solution to some
use cases mentioned in ISSUE 177[1]. For example, it seems that the use
case described in [2]

#demo {
  transform: scale(2);
}
#demo.state-1 {
  transform: scale(2) roate(45deg);
}
#demo.state-2 {
  transfrom: scale(2) rotate(90deg);
}

could be shortened into

#demo {
  transform: scale(2);
}
#demo.state-1::inside {
  transform: rotate(45deg);
}
#demo.state-2::inside {
  trasnform: rotate(90deg);
}.

Does this look like a possible solution? Will Shadow DOM / XBL cover
this use case?

[1] http://www.w3.org/Style/CSS/Tracker/issues/177
[2] http://lists.w3.org/Archives/Public/www-style/2011Mar/0564

Received on Wednesday, 17 August 2011 22:07:45 UTC