The OpenD Programming Language

computedStyleFactory

This delegate is called if you call Element.computedStyle to attach an object to the element that holds stylesheet information. You can rebind it to something else to return a subclass if you want to hold more per-element extension data than the normal computed style object holds (e.g. layout info as well).

The default is return new CssStyle(null, element.style);

CssStyle function(Element e) computedStyleFactory;

Meta

History

Added September 13, 2024 (dub v11.6)