Merge multiple styles for a given element which are given in priority order

style_merge(...)

Arguments

...

multiple style objects (i.e. declaration blocks). The order in which these arguments are given reflect the priority of the styles from lowest to highest priority. Later styles (i.e. high priority) will override any styles declared earlier (lower priority)

Value

final cascaded result

Examples

if (FALSE) { style1 <- list(color = 'blue', `font-weight` = 'bold') style2 <- list(color = 'red', `font-size`="12px") style_merge(style1, style2) }