mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Merge pull request #3492 from pcwalton/clear-generated-content-table
layout: Support any `display` property in generated content, and allow Reviewed-by: glennw
This commit is contained in:
commit
33e2a7b362
7 changed files with 99 additions and 50 deletions
|
@ -149,3 +149,4 @@ flaky_linux == acid2_noscroll.html acid2_ref_broken.html
|
|||
== margins_inside_floats_a.html margins_inside_floats_ref.html
|
||||
== block_formatting_context_complex_a.html block_formatting_context_complex_ref.html
|
||||
== block_formatting_context_containing_floats_a.html block_formatting_context_containing_floats_ref.html
|
||||
== clear_generated_content_table_a.html clear_generated_content_table_ref.html
|
||||
|
|
19
tests/ref/clear_generated_content_table_a.html
Normal file
19
tests/ref/clear_generated_content_table_a.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
.clearit:after {
|
||||
content: "";
|
||||
clear: both;
|
||||
display: table;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class=clearit>
|
||||
<div style="float: left;">x</div>
|
||||
</div>
|
||||
<div style="float: left;">y</div>
|
||||
</body>
|
||||
</html>
|
||||
|
12
tests/ref/clear_generated_content_table_ref.html
Normal file
12
tests/ref/clear_generated_content_table_ref.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<div class=clearit>
|
||||
<div style="float: left;">x</div>
|
||||
</div>
|
||||
<div style="display: table; clear: both;"></div>
|
||||
<div style="float: left;">y</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue