allow empty rules, width and height will be taken from offsetWidth and offsetHeight