Here is a working demo of a rectangle. I\'d like to move the height property to css and well, it doesn\'t work and gives me a blank. It happens in firefox and chrome.
The width of a element isn't a CSS property in SVG, it's only usable as an attribute. It's for example like the size of a element in HTML. You can only set it as an attribute.