add support for CSS widows and orphans

ported from the following commits in Webkit:
http://trac.webkit.org/changeset/137200
http://trac.webkit.org/changeset/123904
http://trac.webkit.org/changeset/123684