Allow line breaks before/after atomic inline elements

… in preferred minumum width calculation.

Revert test workarounds made in the previous commit.
Fix painting of inset/outset borders.