Re: [csswg-drafts] [css-box] increase pointer target size independently of element layout (#4708)

@coolaj86, I can see only one potential issue stylistically if you use the `position: relative` trick--it will still push things around it out, which might make things look awkward.  I see that the codepen solution you proposed is a little better, but I would propose a slightly more elegant solution here (taking what you came up with and adjusting it slightly):

- https://codepen.io/cwadrupldijjit/pen/GRrwOBq?editors=1111

The difference is that you don't need to do any additional element wrapping in order to get that effect.  The outline I added (of course) is only to show the clickable/tappable area, but you get the idea of how it would work.  Should also work regardless of which element it's put onto.

-- 
GitHub Notification of comment by cwadrupldijjit
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4708#issuecomment-824384741 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 21 April 2021 21:57:08 UTC