layout: white_space::pre should not yield ignorable whitespace.

Improves the Google home page.
This commit is contained in:
Patrick Walton 2014-10-04 19:17:39 -07:00
parent 543f11b62b
commit d30762bb9f
5 changed files with 28 additions and 5 deletions

View file

@ -165,3 +165,4 @@ fragment=top != ../html/acid2.html acid2_ref.html
== inline_hypothetical_box_a.html inline_hypothetical_box_ref.html
== box_sizing_border_box_a.html box_sizing_border_box_ref.html
!= input_height_a.html input_height_ref.html
== pre_ignorable_whitespace_a.html pre_ignorable_whitespace_ref.html

View file

@ -0,0 +1,7 @@
<!DOCTYPE html>
<html>
<body>
<span style="background: yellow; white-space: pre">yaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa<span> </span></span>
</body>
</html>

View file

@ -0,0 +1,7 @@
<!DOCTYPE html>
<html>
<body>
<span style="background: yellow">yaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa<span style="white-space: pre"> </span></span>
</body>
</html>