UNPKG

@wix/css-property-parser

Version:

A comprehensive TypeScript library for parsing and serializing CSS property values with full MDN specification compliance

17 lines (16 loc) 509 B
// Min-width property parser // https://developer.mozilla.org/en-US/docs/Web/CSS/min-width import { BASIC_SIZING_KEYWORDS } from '../types.js'; import { parseSizingProperty, sizingToCSSValue } from './shared-sizing.js'; /** * Parse a CSS min-width property string */ export function parse(value) { return parseSizingProperty(value, BASIC_SIZING_KEYWORDS, true); } /** * Convert a parsed min-width value back to CSS string */ export function toCSSValue(parsed) { return sizingToCSSValue(parsed); }