Alex Vincent wrote:
> var linkElt = aDocument.createElement("style");
> var t = aDocument.createTextNode(this.kDVC_TWEAKING_STYLES);
> linkElt.appendChild(t);
...
> The text node's contents are essentially:
>
> body:-skyfire-custom-selector {
> -moz-binding: url("chrome://smartfit/content/smartfit.xml#foo");
> }
OK. So the upshot of the change is that the binding is now applied
asynchronously. Are you trying to access some JS properties the binding
defines
immediately after adding the sheet?
Does adding a |document.body.offsetWidth;| after the relevant appendChild help?
Or even just getting the body's computed MozBinding?
-Boris
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout