Hi,
but there's a bit of a problem with it in HTML5 because I can't manage colors independently between the layer and the border
Hmm... changing that behavior in Flash to match HTML5 would be possible, but not the other way.
In HTML5 the border will be simply drawn/set by CSS and there the border will be drawn on top of the background color so that both colors get mixed. Changing that behavior isn't possible.
In Flash the background and the border are independent elements and both are drawn fully manually. There it would be possible to simulate the HTML5 behavior by manually mixing the background and the border colors.
I wanted to test your case and found another interesting behaviour. If the layer like yours has rounded edges, then in Flash its inner part has rounded edges to the right and 90-degree edges to the left
Thanks for the example - yes, the border calculations were a bit complicated

. I will try to fix that case.
Best regards,
Klaus