"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.rawExtractStyle = void 0;
function rawExtractStyle(element) {
    if (element instanceof Text) {
        return {};
    }
    const _style = {};
    const { style } = element;
    for (let i = 0; i < style.length; i++) {
        const key = style[i];
        const value = style.getPropertyValue(key);
        _style[key] = value;
    }
    return _style;
}
exports.rawExtractStyle = rawExtractStyle;
//# sourceMappingURL=rawExtractStyle.js.map