--- title: "CSS and SVG" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{CSS and SVG} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- ```{r, include = FALSE} knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.height = 5, fig.width = 5 ) #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Ensure that images are rendered using a device which understands patterns #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ knitr::opts_chunk$set(dev.args = list(png = list(type = "cairo"))) ``` ```{r setup} library(svgparser) ``` # Introduction Style in SVG is a little more complicated than CSS in a vanilla HTML document. Consider an SVG image embedded in an HTML document. The style for a particular SVG element is influenced by: 0. The browser default styling (also known as User Agent Styling) 1. The `