"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseBorder = void 0;
const assert = require("../util/assert");
function parseBorder(border) {
    // TODO
    const [width = '0px', style = 'solid', color = 'currentColor'] = border.split(' ');
    return {
        width: width || '0px',
        style,
        color,
    };
}
exports.parseBorder = parseBorder;
assert.deepEqual(parseBorder(''), {
    width: '0px',
    style: 'solid',
    color: 'currentColor',
});
assert.deepEqual(parseBorder('1px'), {
    width: '1px',
    style: 'solid',
    color: 'currentColor',
});
assert.deepEqual(parseBorder('1px solid white'), {
    width: '1px',
    style: 'solid',
    color: 'white',
});
//# sourceMappingURL=parseBorder.js.map