diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2015-08-05 09:28:39 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2015-08-11 11:42:20 -0700 |
commit | ae378a8c3e1b77fe4e1ab3b8602900d32844756c (patch) | |
tree | 0873c035bdd1684dde96ff5f6da8078fa58db541 /components/script/dom/htmlheadingelement.rs | |
parent | 9c528c6382ee4355f42824a7caad217c4eb8a3b0 (diff) | |
download | servo-ae378a8c3e1b77fe4e1ab3b8602900d32844756c.tar.gz servo-ae378a8c3e1b77fe4e1ab3b8602900d32844756c.zip |
layout: Rewrite whitespace stripping.
This patch makes Servo unconditionally strip whitespace before text run
scanning (assuming that the `white-space` property allows it). Whitespace
stripping during reflow is now only used for handling whitespace at the ends of
lines; reflow now never attempts to handle ignorable whitespace.
Many CSS tests pass now. There are some new failures, however.
The following reference tests now fail due to a pre-existing bug whereby
whitespace is used to calculate the position of inline hypothetical boxes for
elements with `display: inline; position: absolute`:
* `absolute-replaced-height-036.htm`
* `vertical-align-sub-001.htm`
* `vertical-align-super-001.htm`
The following reference tests fail due to a pre-existing bug whereby we don't
handle `font-size: 0` properly in inline reflow:
* `font-size-zero-1.htm`
* `font-size-zero-2.htm`
The following reference test fails due to the fact that it relied on our
incorrect insertion of whitespace to make room for the black background:
* `inline-formatting-context-007.htm`
Diffstat (limited to 'components/script/dom/htmlheadingelement.rs')
0 files changed, 0 insertions, 0 deletions