This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15479 - [Decorators]: Alternative idea using CSS variables
Summary: [Decorators]: Alternative idea using CSS variables
Status: RESOLVED MOVED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-09 23:10 UTC by Dimitri Glazkov
Modified: 2015-07-06 08:18 UTC (History)
3 users (show)

See Also:


Attachments

Description Dimitri Glazkov 2012-01-09 23:10:42 UTC
Goes like this:

* There are no decorators in Web Components.

Instead:

* Whenever a CSS variable (http://dev.w3.org/csswg/css-variables/) changes, it fires a simple event (non-bubbling, non-cancellable).
* There's a CSS-based method for building extra rendering blocks of around DOM elements (http://lists.w3.org/Archives/Public/www-style/2012Jan/0202.html).

The latter allows us to avoid creating a markup-based vehicle to generate rendering blocks. The former allow us to send signals down to custom elements whenever rule starts/stops matching.
Comment 1 Dimitri Glazkov 2012-01-09 23:16:43 UTC
Comments are welcome.
Comment 2 Tab Atkins Jr. 2012-01-10 01:34:40 UTC
I'm confused by the simple event.  What does it fire on?

How do you envision this helping?
Comment 3 Dimitri Glazkov 2012-01-10 03:57:51 UTC
(In reply to comment #2)
> I'm confused by the simple event.  What does it fire on?
> 
> How do you envision this helping?

You're confused?! Imagine me re-reading what I wrote. I blame it on a bad batch of crack. I'll rewrite this better tomorrow.
Comment 4 Hayato Ito 2015-07-06 08:18:26 UTC
Moved to https://github.com/w3c/webcomponents/issues/256