CKTIS / CSS
border-image-outset — extending the border image
The border-image-outset property extends the border image area beyond the border box without enlarging the element’s layout box. It accepts lengths or unitless multipliers of the corresponding border widths.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
border-image-outset: [ <length [0,∞]> | <number [0,∞]> ]{1,4};border-image-outset specifies how far the border image area extends beyond the border box. It does not replace border-image-source. Its initial value is 0, and it is not inherited. Unlike border-image-width, which sizes image strips inward from that area’s edges, it controls the area’s outward extension.
Supply one to four nonnegative values. One applies to every side; two mean top/bottom and right/left; three mean top, right/left, and bottom; four mean top, right, bottom, and left. A length specifies the outset directly. A unitless number multiplies that side’s computed border-width, not border-image-width. Percentages and negative values are invalid.
The overhanging image reserves no layout space, does not trigger scrolling, and does not capture mouse events outside the border box. An ancestor or the viewport can clip it. A later border-image shorthand resets omitted components, including the outset, to their initial values.
Examples
<!doctype html>
<meta charset="utf-8">
<title>border-image-outset</title>
<style>
.box {
margin: 40px;
width: 160px;
height: 80px;
border: 8px solid transparent;
border-image-source: linear-gradient(#006699, #006699);
border-image-slice: 1;
border-image-width: 1;
border-image-outset: 2 12px;
outline: 1px dashed #cc0000;
background: #eeeeee;
}
</style>
<div class="box"></div>Result
Expected: a blue image border extends 16px beyond the border box at the top and bottom, and 12px at the left and right. The border box remains 176px × 96px.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.