PHP implementation of the HTML5 outline algorithm.