CKTIS / CSS
border-left-style — left border pattern
The border-left-style property sets the pattern of the physical left border. It accepts one value, such as solid, dashed, or none; width and color are configured separately.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
border-left-style: none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset;border-left-style sets the style of an element’s physical left border. It does not set its width or color: use border-left-width and border-left-color for those. Unlike the border-style shorthand, it accepts only one style, not one to four values.
Available values are none, hidden, dotted, dashed, solid, double, groove, ridge, inset, and outset. dotted produces dots, dashed produces dashes, solid produces a continuous line, and double produces two lines. The remaining visible styles create three-dimensional effects.
The initial value is none; the property is not inherited. Under CSS Backgrounds and Borders Level 3, when the style is none or hidden, the computed value of border-left-width is zero even if a positive width is declared. In tables with collapsed borders, hidden differs from none during border conflict resolution. Style animation is discrete, without smooth interpolation between patterns.
The example sets only the left border: black, solid, and 6px wide. A later border or border-left shorthand can overwrite this style. A border image specified through border-image can replace ordinary border rendering.
Examples
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>border-left-style</title>
<style>
.sample {
border: 0;
border-left-width: 6px;
border-left-color: #000;
border-left-style: solid;
padding: 12px;
}
</style>
<div class="sample">border-left-style: solid</div>
</html>Result
border-left-style: solid
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.