JSFiddle - React, Tailwind, and code Playground
by ecmanaut
HTML
<form onsubmit="return test()">
<input id="what" value="(flex: 1)">
</form>
JavaScript
function test() {
try {
what = document.getElementById('what').value;
document.body.style.background = CSS.supports(what) ? 'green' : 'red'
}catch(e){alert(e);}
return false;
}
test();