[LayoutNG] Implement height calculation quirk

Spec: https://quirks.spec.whatwg.org/#the-percentage-height-calculation-quirk

It is bug compatible with Legacy. Two test results are interesting:

external/wpt/quirks/percentage-height-calculation.html

Here we pass/fail same tests except for one extra pass, and one extra fail.
Failure is <table>, due to invalidation

fast/block/basic/quirk-percent-height-table-cell.html

This is an overconstrained <td>. I think that NG rendering is correct, and it
matches FF.

Bug: 635619
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng
Change-Id: I572571428c98fbd95abfea7539ca0ab6d16bbc06
Reviewed-on: https://chromium-review.googlesource.com/940335
Commit-Queue: Aleks Totic <atotic@chromium.org>
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Cr-Commit-Position: refs/heads/master@{#539910}
3 files changed