If undefined, font-weight information is unavailable (unset, empty).
If font-weight is given as number, for some well-known weights a text
representation is provided in addition to the number.
For a well-known font-weight, the corresponding numeric value augments
the text representation.
Note that numeric and text representation follow simple matching without
in-depth analysis of the surroundings. As such, bolder will reveal the
same numeric representation as it is typical for a parent having
font-weight bold. Similar, lighter will be represented by a value
typically used by browsers, when the parent has font-weight normal.
Retrieves font-weight information from style.
If
undefined
, font-weight information is unavailable (unset, empty).If font-weight is given as number, for some well-known weights a text representation is provided in addition to the number.
For a well-known font-weight, the corresponding numeric value augments the text representation.
Note that numeric and text representation follow simple matching without in-depth analysis of the surroundings. As such,
bolder
will reveal the same numeric representation as it is typical for a parent having font-weightbold
. Similar,lighter
will be represented by a value typically used by browsers, when the parent has font-weightnormal
.