Is it possible to set the size of a child element such that it fills its parent and its parent's (rounded) border? Assuming I cannot simply hardcode everything.
This was my initial code: JSFiddle. The size of the <a> is 80 x 80 pixels vs. 82 x 82 pixels for <li>, because of its border. The difference is noticeable when activating the :hover.
It seems that using outline in place of border would do what I want, but there is no cross-browser outline-radius. That led me to this answer using box-shadow; this works (JSFiddle), but is there a less 'hacky' approach? Semantically, I want a border, not a shadow.