src/nodes.js
function getStyle(element) {
    const style = element.style;
    const styles = {};
    for (let i = 0; i < style.length; i++) {
        const name = style.item(i);
        const transformedName = transformName(name);
        styles[transformedName] = style.getPropertyValue(name);
    }
    return styles;
}
function getStyle(element) {
    const style = element.style;
    const styles = {};
    for (let i = 0; i < style.length; i++) {
        const name = style.item(i);
        const transformedName = transformName(name);
        styles[transformedName] = style.getPropertyValue(name);
    }
    return styles;
}
function getStyle ( element ) { const style = element . style ; const styles = { } ; for ( let i = 0 ; i < style . length ; i ++ ) { const name = style . item ( i ) ; const transformedName = transformName ( name ) ; styles [ transformedName ] = style . getPropertyValue ( name ) ; } return styles ; }
Builds the style object for the VNode.
Builds the style object for the VNode .