Setting a style of auto for width or height doesn't work. This is because the use of parseMeasurement() in the set method doesn't pass auto, so nothing is done.
Here is an example:
var cssstyle = require("./lib/CSSStyleDeclaration");
var style = new cssstyle.CSSStyleDeclaration();
style.width = "auto";
console.log(style);
console.log(style.width);
console.log(style.cssText);
This prints three blank lines rather than the expected two lines of auto followed by width: auto;.
Setting a style of
auto
forwidth
orheight
doesn't work. This is because the use ofparseMeasurement()
in theset
method doesn't passauto
, so nothing is done.Here is an example:
This prints three blank lines rather than the expected two lines of
auto
followed bywidth: auto;
.