JSFiddle - React, Tailwind, and code Playground
HTML
<p id="p">An example element</p>
JavaScript
window.onload = function () {
var p = document.getElementById('p'),
dispValue = ['-webkit-box', '-moz-box', '-ms-flexbox', '-webkit-flex', 'flex'],
n;
for (n = 0; n < dispValue.length; n++) {
p.style.display = dispValue[n];
if (window.getComputedStyle(p, null).display === dispValue[n]) {
break;
}
}
alert(p.style.display);
}