CodePen

HTML

            
              <h1>Some long text blah blah</h1>  
            
          
!

CSS

            
              h1 {
  float: left;
  background: green;
}
            
          
!

JavaScript

            
              
            
          
!
999px
Loading ..................