pub fn typography_role_to_px(role: &str) -> Option<f32>Expand description
Resolve a Material 3-flavored typography role name to a pixel
font size. Returns None for unknown names so the caller can
fall back to the default 16 px.
This table stays in Rust rather than moving to skins/ua.css with
the rest of the user-agent defaults: the cascade in lumen_ir::css
matches selectors on tag, id, class, and pseudo-class only, with no
attribute-value selector. There is no CSS rule that can say “an
element carrying style-role="display-xl" gets font-size: 128px” -
the mapping from the role keyword to its pixel size has to happen in
code, the same way a keyword like font-weight: bold resolves to a
numeric weight.