Skip to main content

encode_css_pixel_as_i16

Function encode_css_pixel_as_i16 

Source
pub fn encode_css_pixel_as_i16(prop: &CssPropertyValue<PixelValue>) -> i16
Expand description

Resolve a CssPropertyValue to an i16 ×10 encoding. Only handles Exact(px(...)) values. Everything else → sentinel. For the compact cache builder, we only pre-resolve absolute pixel values. Relative units (em, %, etc.) get sentinel and fall back to the slow path.