JSFiddle - React, Tailwind, and code Playground

HTML

<div class="test">
    omg<br /><br />
</div>

<div style="height: auto; font-weight: bold;">
    omg<br /><br />
</div>

Results:
<p>
    
</p>

CSS

.test {
    height: auto;
    font-weight: bold;
}

JavaScript

$('div').each(function() {
        $('p').append('.css("height"): ' + $(this).css('height')
                      + ', $.style(this, "height"): ' + $.style(this, 'height') + '<br />');
         $('p').append('.css("font-weight"): ' + $(this).css('font-weight')
                      + ', $.style(this, "font-weight"): ' + $.style(this, 'font-weight') + '<br /><br />');
    });