W3C home > Mailing lists > Public > www-style@w3.org > August 2006

Re: XBL in CSS

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Thu, 17 Aug 2006 13:26:06 +1000
Message-ID: <44E3E1CE.6090403@lachy.id.au>
To: fantasai <fantasai.lists@inkedblade.net>
CC: www-style@w3.org, dev-tech-xbl@mozilla.org

fantasai wrote:
> I don't mind putting these bindings in a text/css file, but I would 
> like to see them explicitly separated out from the rest of the CSS 
> rules, perhaps in an @rule that is always placed before any regular 
> CSS rules.
>   @import "foo";
>   @bindings {
>      input.special { binding: url("mybinding"); }
>   }

I somewhat agree with Ian that this adds too much complexity, but it has 
given me an idea.

It would be useful to be able to import bindings from CSS, much like the 
<?xbl?> PI does.  The benefit of this would be that, unlike the PI, it 
could be used in HTML.  Presently, the only way to import a binding into 
HTML is to call document.loadBindingDocument(...); in a script.

What about using this?

@binding url(/binding/example.xbl);
@binding "/binding/example.xbl"

Or perhaps just extending @import to support importing bindings.

Lachlan Hunt
Received on Thursday, 17 August 2006 03:28:10 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:25 UTC