<!DOCTYPE html> <span id="x" style="display: contents"> <span style="display: table-caption"> </span> <script> document.body.offsetWidth; x.style.color = "green"; </script>