Re: [csswg-drafts] [css-backgrounds] Clarify how `border-width` and `border-style` affect `border-image`

Boris Zbarsky raised an issue on the "unless there is a border image" wording earlier, and this sentence has now been rewritten. https://drafts.csswg.org/css-backgrounds-3/#the-border-style

In any case, the computed value of 'border-width' is very explicitly defined to be zero for `none` and `hidden` borders. Additionally, the border image section is very explicit that none of the properties therein affect layout. Since by default a border image is only drawn in the border area, by default a `border-style` of `none` will make it disappear. However, the `border-image-outset` and `border-image-width` values can alter the “border” area into which the border image is drawn, extending it into the padding area (in the case of `border-image-width`s greater than the `border-width`) or extending it outside the border edge (in the case of `border-image-outset` greater than zero).

So, border images override border-style in the sense that a border-style-specified border will not be drawn if a border image is specified. But to the extent that `border-style` influences the `border-width` it can affect whether the border image is visible or not.

Please let me know if that's clear or if you think some further explanation is needed (here or in the spec).

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

Received on Thursday, 21 September 2017 05:57:32 UTC