docs.rodeo

MDN Web Docs mirror

{{CSSRef}} 

The <box-edge> value types represent a box edge keyword, such as content-box and border-box. The box-edge keywords are used to define different aspects of an element’s box model and how elements are positioned and rendered on screen.

The box-edge keywords are the components of, but not limited to, the data types <visual-box>, <layout-box>, <paint-box>, <coord-box>, and <geometry-box>. These types are applied to properties such as {{cssxref("transform-box")}}  and {{cssxref("background-clip")}} .

Syntax

<visual-box> = content-box | padding-box | border-box /* the three <box> values */
<layout-box> = <visual-box> | margin-box /* the <shape-box> values */
<paint-box> = <visual-box> | fill-box | stroke-box
<coord-box> = <paint-box> | fill-box | stroke-box | view-box
<geometry-box> = <shape-box> | fill-box | stroke-box | view-box

Values

A <box-edge> can be of the type <visual-box>, <layout-box>, <paint-box>, <coord-box>, or <geometry-box>.

Keywords

The <box-edge> keywords are defined as follows:

Specifications

{{Specifications}} 

See also

In this article

View on MDN