UNPKG

@wix/css-property-parser

Version:

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

28 lines (27 loc) 1.03 kB
"use strict"; // Border-right-width property parser // Handles parsing of CSS border-right-width property according to MDN specification // https://developer.mozilla.org/en-US/docs/Web/CSS/border-right-width Object.defineProperty(exports, "__esModule", { value: true }); exports.parse = parse; exports.toCSSValue = toCSSValue; const shared_border_width_1 = require('./shared-border-width.cjs'); /** * Parse a CSS border-right-width property string * Accepts non-negative lengths and border width keywords (thin, medium, thick) * * @param value - The CSS border-right-width property value * @returns Parsed border right width value or null if invalid */ function parse(value) { return (0, shared_border_width_1.parseBorderWidthProperty)(value); } /** * Convert BorderRightWidthValue back to CSS string * * @param parsed - The parsed border right width value * @returns CSS string representation or null if invalid */ function toCSSValue(parsed) { return (0, shared_border_width_1.borderWidthToCSSValue)(parsed); }