CKTIS / CSS
border-top-left-radius — top-left corner radii
The border-top-left-radius property sets the radii of the physical top-left corner. One value sets both radii, while two values let you create an elliptical corner.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
/* Level 3 */
border-top-left-radius: <length-percentage [0,∞]>{1,2};
/* Level 4 additionally defines slash-separated radii */
border-top-left-radius: <length-percentage [0,∞]> / <length-percentage [0,∞]>;border-top-left-radius sets the radii of the physical top-left corner of the outer border edge. With the default corner shape, the corner is a quarter ellipse. Its initial value is 0, and the property is not inherited.
The first value is the horizontal radius; the second is the vertical radius. An omitted second value copies the first. Percentages refer respectively to the border-box width and height, so a single percentage need not produce a circular arc. Negative values are invalid; a zero radius on either axis makes the corner square.
Level 3 defines space-separated values, such as 60px 30px. Level 4 additionally defines and prefers 60px / 30px, retaining the older syntax. Specification inclusion is not confirmation of support in the target browser; the example uses Level 3 syntax.
If adjacent radii do not fit along the sides, the browser proportionally reduces all radii. A later border-radius shorthand can override this property. Background rounding also works without a visible border, but setting a radius alone does not automatically clip descendant content.
Examples
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>border-top-left-radius</title>
<style>
.sample {
box-sizing: border-box;
width: 200px;
height: 120px;
border: 4px solid #123456;
background: #b3e5fc;
border-top-left-radius: 60px 30px;
}
</style>
<div class="sample"></div>
</html>Result
A 200px × 120px light-blue box with a 4px dark border. Only the top-left corner is rounded, with a 60px horizontal radius and a 30px vertical radius.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.