- From: Brad Kemper <brad.kemper@gmail.com>
- Date: Fri, 12 Jun 2015 12:20:29 -0700
- To: Florian Rivoal <florian@rivoal.net>
- Cc: www-style list <www-style@w3.org>
> On Jun 12, 2015, at 5:34 AM, Florian Rivoal <florian@rivoal.net> wrote: > > Asking for use cases, here's an answer I got. > >> There are times where borders could be decorative elements where it is more optimal for it to be excluded from the width. I’ve put together a small demo here. On hover, a border-right is appearing on the <div>s on the left side. If border-box had been used, the border would have become inside the element, shrinking the dark green width, but on Firefox it is rendering outside as intended. If I had been using content-box, I would’ve had to shrink the div widths as a hack instead of the more easy «width: 100%». I don't feel strongly one way or the other, but is this a use case that could be solved with border image (using svg or even a linear gradient for the image) and border-image-outset? It'd be a bit of a hack...
Received on Friday, 12 June 2015 19:20:59 UTC