add comment & add ref test

This commit is contained in:
patrick kim 2014-01-27 12:02:35 +09:00
parent c2ced790ba
commit b0d4093a86
6 changed files with 45 additions and 0 deletions

View file

@ -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>
}

View file

@ -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

View file

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

Before After
Before After

View file

@ -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>

View file

@ -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 not shown.

After

Width:  |  Height:  |  Size: 20 KiB