2003-04-20 20:01 UTC DOM2 CSS needs work
I was sharply reminded today that we (the CSS working group) really need to do something about the CSS object model. I was given a simple task: Increase the width of
element by 3em.
As far as I can tell, currently the official way of doing this is:
document.getOverrideStyle(element, null).getPropertyCSSValue("width").setFloatValue(CSS_EM, 3 + document.defaultView.getComputedStyle(element, null).getPropertyCSSValue("width").getFloatValue(CSS_EM));
Here is how I propose it be done (this would be exactly equivalent to the above):
element.computedStyle.width.em += 3;
Something to look at once we've finished with CSS2.1, maybe.