function attr_style(value, directives) {
	var result = to_style(value, directives);
	return result ? ` style="${escape_html(result, true)}"` : '';
}
@param {any} value
@param {Record<string,any>|[Record<string,any>,Record<string,any>]} [directives]