Skip to content

Commit

Permalink
add comment & add ref test
Browse files Browse the repository at this point in the history
  • Loading branch information
ksh8281 committed Jan 27, 2014
1 parent c2ced79 commit b0d4093
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/main/layout/text.rs
Expand Up @@ -18,6 +18,8 @@ use style::computed_values::white_space;
/// A stack-allocated object for scanning an inline flow into `TextRun`-containing `TextBox`es.
pub struct TextRunScanner {
clump: Range,
/// when flush_clump, some boxes not makes result.
/// if the lost box has border,margin,padding of inline, we should restore that stuff.
last_lost_box_index: Option<uint>
}

Expand Down
1 change: 1 addition & 0 deletions src/test/ref/basic.list
Expand Up @@ -24,3 +24,4 @@
== position_fixed_a.html position_fixed_b.html
== img_size_a.html img_size_b.html
== upper_id_attr.html upper_id_attr_ref.html
== inline_border_a.html inline_border_b.html
File renamed without changes
22 changes: 22 additions & 0 deletions src/test/ref/inline_border_a.html
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<style>
html {
margin: 0;
padding: 0;
background-color: blue;
border: none;
}
body {
margin: 0;
padding: 0;
border: none;
}
</style>
</head>
<body>
<span style="border: 10px black solid"><img width="100" style="border:10px red solid" src="inline_border.jpeg"></span>
</body>
</html>

20 changes: 20 additions & 0 deletions src/test/ref/inline_border_b.html
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<style>
html {
margin: 0;
padding: 0;
background-color: blue;
border: none;
}
body {
margin: 0;
padding: 0;
border: none;
}
</style>
</head>
<body><img src="inline_border_ref.png"></body>
</html>

Binary file added src/test/ref/inline_border_ref.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b0d4093

Please sign in to comment.