UNPKG

@wix/css-property-parser

Version:

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

29 lines (28 loc) 993 B
"use strict"; // Logical padding-inline-end property evaluator // Defines the logical inline end padding of an element, adapting to writing mode and direction // MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/padding-inline-end Object.defineProperty(exports, "__esModule", { value: true }); exports.parse = parse; exports.toCSSValue = toCSSValue; const shared_padding_1 = require('./shared-padding.cjs'); /** * Parses CSS padding-inline-end property value * * Syntax: <length-percentage> | global-keywords * * @param value - The CSS value to parse * @returns Parsed padding-inline-end value or null if invalid */ function parse(value) { return (0, shared_padding_1.parsePaddingProperty)(value); } /** * Converts parsed padding-inline-end value back to CSS string * * @param parsed - The parsed padding-inline-end value * @returns CSS string representation or null if invalid */ function toCSSValue(parsed) { return (0, shared_padding_1.paddingToCSSValue)(parsed); }