//! - `resolve_with_context()` — the correct method for new code; properly distinguishes em vs rem,
/// Conversion factor from points to pixels (1pt = 1/72 inch, 1in = 96px, therefore 1pt = 96/72 px)
/// - **em** units: For most properties, em refers to the element's own computed font-size. For the
/// - % units: Uses property-appropriate reference (containing block width/height, element size,
NoValueGiven(input, metric) => format!("Expected floating-point pixel value, got: \"{}{}\"", input, metric),
ValueParseErr(err, number_str) => format!("Could not parse \"{}\" as floating-point value: \"{}\"", number_str, err),
pub fn parse_pixel_value(input: &str) -> Result<PixelValue, CssPixelValueParseError<'_>> {