I drawed a small rectangle (12 x 12) with a solid border of 2 pixels. The Cap type is set to Square and the Join type to Miter. In HTML (SWF) it looks ok, but in HTML5, there is one pixel top left missing.
I tried other settings.
Perhaps using an image instead of a Storyline shape is an option, but then we cannot use theme colors.