monks/transform_box
The transform-box CSS property defines the layout box to which the {{cssxref(“transform”)}}, individual transform properties {{cssxref(“translate”)}}, {{cssxref(“scale”)}}, and {{cssxref(“rotate”)}}, and {{cssxref(“transform-origin”)}} properties relate.
Values
pub const border_box: #(String, String)
- : The border box is used as the reference box. The reference box of a {{htmlElement(“table”)}} is the border box of its table wrapper box, not its table box.
pub const content_box: #(String, String)
- : The content box is used as the reference box. The reference box of a {{htmlElement(“table”)}} is the border box of its table wrapper box, not its table box.
pub const fill_box: #(String, String)
- : The object bounding box is used as the reference box. For elements with associated CSS layout box, acts as
content-box.
pub const revert_layer: #(String, String)
pub const stroke_box: #(String, String)
- : The stroke bounding box is used as the reference box. For elements with associated CSS layout box, acts as
border-box.
pub fn var(variable: String) -> #(String, String)
Enter a variable name to be used for transform-box.
It will be wrapped in var() and have -- prepended.
pub const view_box: #(String, String)
- : The nearest {{Glossary(“SVG”)}} viewport is used as the reference box. If a {{SVGAttr(“viewBox”)}} attribute is specified for the SVG viewport creating element, the reference box is positioned at the origin of the coordinate system established by the
viewBoxattribute, and the dimension of the reference box is set to the width and height values of theviewBoxattribute. For elements with associated CSS layout box, acts asborder-box.