mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
add comment & add ref test
This commit is contained in:
parent
c2ced790ba
commit
b0d4093a86
6 changed files with 45 additions and 0 deletions
|
@ -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>
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 86 KiB |
22
src/test/ref/inline_border_a.html
Normal file
22
src/test/ref/inline_border_a.html
Normal 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>
|
||||
|
20
src/test/ref/inline_border_b.html
Normal file
20
src/test/ref/inline_border_b.html
Normal 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>
|
||||
|
BIN
src/test/ref/inline_border_ref.png
Normal file
BIN
src/test/ref/inline_border_ref.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
Loading…
Add table
Add a link
Reference in a new issue