layout: Mark the styles of elements with pseudos as unshareable.

Makes multiple `<br>` elements work, since those are implemented via
`before` pseudos.
This commit is contained in:
Patrick Walton 2014-10-04 19:10:32 -07:00
parent eff0de0ce1
commit a0b369ae7d
6 changed files with 29 additions and 7 deletions

View file

@ -167,3 +167,4 @@ fragment=top != ../html/acid2.html acid2_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
== many_brs_a.html many_brs_ref.html

View file

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
Cupcakes<br>are<br>supremely<br>delicious.
</body>
</html>

View file

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<body>
<div>Cupcakes</div>
<div>are</div>
<div>supremely</div>
<div>delicious.</div>
</body>
</html>