Need to handle border--style & border--color.
Simplest to upload the trapagon to the GPU, but helps prepare for rounded corners & reuse existing abstractions if I combined all borders into a single geometry.
border-color
's trivial.
border-style: none
orhidden
considers not performing the rendering. CatTrap has to treatborder-style: none
specially to 0 out width.
dashed
splits into 2width segments & alternate between fill & transparent.dotted
measures distance from segment edges.
solid
sets all pixels to the same colour.double
splits width into 4 & fills outside segments.
groove
,ridge
,inset
, &outset
splits width in half, increments colour in one half, halves in the other.