== 'inline' ? 'block' : 'inline';
   }
  </script>
 </head>
 <body onclick="clicked()">
  <div class="block">
   <div class="inline">
    This text should all collapse
    <div class="block" id="test">
     into one line of text when
    </div>
    you click on the text.
   </div>
  </div>
 </body>
</html>
