JSFiddle - React, Tailwind, and code Playground
HTML
<div id="sample" yteketet> test</div>
CSS
#sample{
width: 10px;
height: 10px;
foo: bar;
background: invalidText;
}
JavaScript
var element = document.getElementById('sample');
console.log(element.style.foo);
console.log(window.getComputedStyle(element, null).foo);
console.log(element.style.background);
console.log(window.getComputedStyle(element, null).background);