auto merge of #4952 : bjwbell/servo/borders-txt-nodes, r=pcwalton

Inline fragments that are part of a text run don't have interior borders.
So don't draw interior borders or include them when calculating positioning.

Fixes https://github.com/servo/servo/issues/4658, where multiple text nodes that are adjacent have distinct borders.

r? @Ms2ger, @pcwalton
This commit is contained in:
bors-servo 2015-02-27 16:57:53 -07:00
commit b2f099026a
6 changed files with 74 additions and 9 deletions

View file

@ -31,6 +31,7 @@
== img_dynamic_remove.html img_dynamic_remove_ref.html
== upper_id_attr.html upper_id_attr_ref.html
# inline_border_a.html inline_border_b.html
== border_code_tag.html border_code_tag_ref.html
== anon_block_inherit_a.html anon_block_inherit_b.html
== attr_exists_selector.html attr_exists_selector_ref.html
== attr_selector_case_sensitivity.html attr_selector_case_sensitivity_ref.html

View file

@ -0,0 +1,12 @@
<html>
<head>
<style>
code {
border: 2px solid #ccc;
}
</style>
</head>
<body>
<code>Quotes: &quot;&quot;.</code>
</body>
</html>

View file

@ -0,0 +1,12 @@
<html>
<head>
<style>
code {
border: 2px solid #ccc;
}
</style>
</head>
<body>
<code>Quotes: "".</code>
</body>
</html>