mirror of
https://github.com/servo/servo.git
synced 2025-10-01 00:59:15 +01:00
layout: Rewrite Servo's vertical-align
support to match CSS 2.1 §
10.8, and implement `vertical-align: middle` per CSS 2.1 § 10.8.1. `InlineMetrics` has been split into `InlineMetrics` for fragments and `LineMetrics` for lines. Both structures' fields have been renamed in order to more clearly delineate the difference between *space* and *content*. Vertical positioning of fragments has been reworked to take margins and borders into account only for replaced content. This patch fixes the `vertical_align_super_a.html` reftest. Servo now matches the rendering that Gecko and WebKit produce. Additionally, this includes a test for the popular inline-block centering technique described here: https://s.codepen.io/shshaw/fullpage/gEiDt?#Inline-Block
This commit is contained in:
parent
56b41fa2ea
commit
773614f84c
35 changed files with 522 additions and 389 deletions
|
@ -2528,6 +2528,18 @@
|
|||
"url": "/_mozilla/css/inline_block_border_intrinsic_size_a.html"
|
||||
}
|
||||
],
|
||||
"css/inline_block_centering_a.html": [
|
||||
{
|
||||
"path": "css/inline_block_centering_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/inline_block_centering_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/inline_block_centering_a.html"
|
||||
}
|
||||
],
|
||||
"css/inline_block_height_with_out_of_flow_child_a.html": [
|
||||
{
|
||||
"path": "css/inline_block_height_with_out_of_flow_child_a.html",
|
||||
|
@ -5688,6 +5700,18 @@
|
|||
"url": "/_mozilla/css/vertical_align_inside_table_a.html"
|
||||
}
|
||||
],
|
||||
"css/vertical_align_middle_a.html": [
|
||||
{
|
||||
"path": "css/vertical_align_middle_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/vertical_align_middle_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/vertical_align_middle_a.html"
|
||||
}
|
||||
],
|
||||
"css/vertical_align_sub_a.html": [
|
||||
{
|
||||
"path": "css/vertical_align_sub_a.html",
|
||||
|
@ -16286,6 +16310,18 @@
|
|||
"url": "/_mozilla/css/inline_block_border_intrinsic_size_a.html"
|
||||
}
|
||||
],
|
||||
"css/inline_block_centering_a.html": [
|
||||
{
|
||||
"path": "css/inline_block_centering_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/inline_block_centering_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/inline_block_centering_a.html"
|
||||
}
|
||||
],
|
||||
"css/inline_block_height_with_out_of_flow_child_a.html": [
|
||||
{
|
||||
"path": "css/inline_block_height_with_out_of_flow_child_a.html",
|
||||
|
@ -19446,6 +19482,18 @@
|
|||
"url": "/_mozilla/css/vertical_align_inside_table_a.html"
|
||||
}
|
||||
],
|
||||
"css/vertical_align_middle_a.html": [
|
||||
{
|
||||
"path": "css/vertical_align_middle_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/vertical_align_middle_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/vertical_align_middle_a.html"
|
||||
}
|
||||
],
|
||||
"css/vertical_align_sub_a.html": [
|
||||
{
|
||||
"path": "css/vertical_align_sub_a.html",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue