mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
layout: Support percentage widths in inline-blocks.
Improves Twitter.
This commit is contained in:
parent
0a737d90f2
commit
d5ca1a18dc
6 changed files with 52 additions and 4 deletions
|
@ -233,6 +233,7 @@ experimental != overconstrained_block.html overconstrained_block_ref.html
|
|||
== percent_height.html percent_height_ref.html
|
||||
== percentage_height_float_a.html percentage_height_float_ref.html
|
||||
== percentage_height_root.html percentage_height_root_ref.html
|
||||
== percentage_width_inline_block_a.html percentage_width_inline_block_ref.html
|
||||
== png_rgba_colorspace_a.html png_rgba_colorspace_b.html
|
||||
== position_abs_cb_with_non_cb_kid_a.html position_abs_cb_with_non_cb_kid_b.html
|
||||
== position_abs_height_width_a.html position_abs_height_width_b.html
|
||||
|
|
17
tests/ref/percentage_width_inline_block_a.html
Normal file
17
tests/ref/percentage_width_inline_block_a.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
section {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
background: steelblue;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
Y<section>X</section>
|
||||
</body>
|
||||
</html>
|
||||
|
16
tests/ref/percentage_width_inline_block_ref.html
Normal file
16
tests/ref/percentage_width_inline_block_ref.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
section {
|
||||
width: 100%;
|
||||
background: steelblue;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
Y<section>X</section>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue