The polygon function always returns a fill-rule for element style, even if the fill-rule was not specified. element.style.webkitShapeInside = polygon(2px 2px) then element.style.webkitShapeInside returns polygon(nonzero, 2px 2px);