mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
layout: Don't try to vertically align absolutely positioned children of
table rows. Improves http://reddit.com/r/aww.
This commit is contained in:
parent
781a077145
commit
18cf103ee0
4 changed files with 111 additions and 34 deletions
|
@ -5232,6 +5232,18 @@
|
|||
"url": "/_mozilla/css/table_valign_presentational_hint_a.html"
|
||||
}
|
||||
],
|
||||
"css/table_vertical_align_absolute_a.html": [
|
||||
{
|
||||
"path": "css/table_vertical_align_absolute_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/table_vertical_align_absolute_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/table_vertical_align_absolute_a.html"
|
||||
}
|
||||
],
|
||||
"css/table_vertical_align_margin_padding.html": [
|
||||
{
|
||||
"path": "css/table_vertical_align_margin_padding.html",
|
||||
|
@ -19038,6 +19050,18 @@
|
|||
"url": "/_mozilla/css/table_valign_presentational_hint_ref.html"
|
||||
}
|
||||
],
|
||||
"css/table_vertical_align_absolute_a.html": [
|
||||
{
|
||||
"path": "css/table_vertical_align_absolute_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/table_vertical_align_absolute_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/table_vertical_align_absolute_a.html"
|
||||
}
|
||||
],
|
||||
"css/table_vertical_align_margin_padding.html": [
|
||||
{
|
||||
"path": "css/table_vertical_align_margin_padding.html",
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<link rel="match" href="table_vertical_align_absolute_ref.html">
|
||||
<style>
|
||||
body, html {
|
||||
margin: 0;
|
||||
}
|
||||
tr {
|
||||
vertical-align: bottom;
|
||||
height: 300px;
|
||||
}
|
||||
tr::after {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
background: blue;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
<table><tr><td>
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body, html {
|
||||
margin: 0;
|
||||
}
|
||||
div {
|
||||
position: absolute;
|
||||
background: blue;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
<div>
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue