font-stretch
Important |
|---|
|
This documentation is preliminary and is subject to change. |
Sets a value that indicates the font size used for text in the object.
Syntax
{ font-stretch:
sFace
}
Possible values
sFace
String that specifies one of the following values:
|
normal |
Default. Indicates the face is neither condensed nor expanded. |
|
wider |
Specifies a wider value relative to the width of the parent element. |
|
narrower |
Specifies a narrower value relative to the width of the parent element. |
|
ultra-condensed |
Specifies the most condensed font face. |
|
extra-condensed |
Specifies the second most condensed font face. |
|
semi-condensed |
Specifies a slightly condensed font face. |
|
semi-expanded |
Specifies a slightly expanded font face. |
|
expanded |
Specifies an expanded font face. |
|
extra-expanded |
Specifies the second most expanded font face. |
|
ultra-expanded |
Specifies the most expanded font face. |
|
inherit |
Specifies that the property takes the same computed value as the property for the element's parent. |
This property has a default value of normal. It is inherited.
Remarks
Absolute keyword values have the following order, from narrowest to widest:
-
Ultra condensed
-
Extra condensed
-
Condensed
-
Semi condensed
-
Normal
-
Semi expanded
-
Expanded
-
Extra expanded
-
Ultra expanded
The scale is relative, so a font face that has a font-stretch value higher in the previous list above should never appear wider. When a font face does not exist for a given width, normal or condensed values map to a narrower font face. Otherwise, they map to a wider font face. Conversely, expanded values map to a wider font face; otherwise, a narrower face.
Standards information
This property is defined in Scalable Vector Graphics (SVG) Text
, Section 10.10.
Applies to
a, address, applet, b, big, blockquote, body, button, caption, center, cite, code, col, colgroup, custom, dd, defaults, dfn, div, dl, dt, em, fieldset, form, hn, html, i, input type=button, input type=file, input type=image, input type=password, input type=reset, input type=submit, input type=text, li, ol, p, s, select, span, sub, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var, xmp
Important