Skip to main contentModule pixel
Source - CssLogicalSize
- Logical size in CSS logical coordinate system
- NormalizedPercentage
- A normalized percentage value (0.0 = 0%, 1.0 = 100%)
- PhysicalSize
- Physical size (always width x height, regardless of writing mode)
- PixelValue
- PixelValueNoPercent
- Same as PixelValue, but doesn’t allow a “%” sign
- ResolutionContext
- Context information needed to properly resolve CSS units (em, rem, %) to pixels.
- CssPixelValueParseError
- CssPixelValueParseErrorOwned
- Owned version of CssPixelValueParseError.
- OptionPixelValue
- OptionPixelValueNoPercent
- PixelValueWithAuto
- PropertyContext
- Specifies which property context we’re resolving for, to determine correct reference values
- DEFAULT_FONT_SIZE
- Default/fallback font size in pixels, used when no font-size is specified.
- MEDIUM_BORDER_THICKNESS
- border-width: medium = 3px (per CSS spec, default)
- PT_TO_PX
- Conversion factor from points to pixels (1pt = 1/72 inch, 1in = 96px, therefore 1pt = 96/72 px)
- THICK_BORDER_THICKNESS
- border-width: thick = 5px (per CSS spec)
- THIN_BORDER_THICKNESS
- border-width: thin = 1px (per CSS spec)
- parse_pixel_value
- parse_pixel_value_no_percent
- parse_pixel_value_with_auto
- Parses a pixel value, but also tries values like “auto”, “initial”, “inherit” and “none”