The stroke attribute becomes a special attribute only in case it's defined as an object. This has the exact same behaviour as the fill attribute.