@wix/css-property-parser
Version:
A comprehensive TypeScript library for parsing and serializing CSS property values with full MDN specification compliance
21 lines (20 loc) • 650 B
JavaScript
;
// Min-height property parser
// https://developer.mozilla.org/en-US/docs/Web/CSS/min-height
Object.defineProperty(exports, "__esModule", { value: true });
exports.parse = parse;
exports.toCSSValue = toCSSValue;
const types_1 = require('../types.cjs');
const shared_sizing_1 = require('./shared-sizing.cjs');
/**
* Parse a CSS min-height property string
*/
function parse(value) {
return (0, shared_sizing_1.parseSizingProperty)(value, types_1.BASIC_SIZING_KEYWORDS, true);
}
/**
* Convert a parsed min-height value back to CSS string
*/
function toCSSValue(parsed) {
return (0, shared_sizing_1.sizingToCSSValue)(parsed);
}