mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
layout: Set padding to zero on tables in collapsed-borders mode (#34908)
https://drafts.csswg.org/css2/#collapsing-borders > in this model, a table does not have padding https://drafts.csswg.org/css-tables/#collapsed-style-overrides > The padding of the table-root is ignored (as if it was set to 0px). Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
e75041d53f
commit
4f8dcfe6f9
7 changed files with 147 additions and 11 deletions
52
tests/wpt/meta/MANIFEST.json
vendored
52
tests/wpt/meta/MANIFEST.json
vendored
|
@ -105991,6 +105991,58 @@
|
|||
{}
|
||||
]
|
||||
],
|
||||
"collapsing-border-model-011.html": [
|
||||
"9c03ddeda9051c6e823ca1f31729eed0d8a8ac7b",
|
||||
[
|
||||
null,
|
||||
[
|
||||
[
|
||||
"/css/reference/ref-filled-green-100px-square-only.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
{}
|
||||
]
|
||||
],
|
||||
"collapsing-border-model-012.html": [
|
||||
"39b176ce375994ece4ca6c05b7484ef59fcd1c79",
|
||||
[
|
||||
null,
|
||||
[
|
||||
[
|
||||
"/css/reference/ref-filled-green-100px-square-only.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
{}
|
||||
]
|
||||
],
|
||||
"collapsing-border-model-013.html": [
|
||||
"5e5f57694c9015c5a74082a9525bb2ce44d39bfc",
|
||||
[
|
||||
null,
|
||||
[
|
||||
[
|
||||
"/css/reference/ref-filled-green-100px-square-only.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
{}
|
||||
]
|
||||
],
|
||||
"collapsing-border-model-014.html": [
|
||||
"18177526b824cfebbc95467031c30d04b7b3ff79",
|
||||
[
|
||||
null,
|
||||
[
|
||||
[
|
||||
"/css/reference/ref-filled-green-100px-square-only.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
{}
|
||||
]
|
||||
],
|
||||
"column-visibility-004.xht": [
|
||||
"60d233fa9402f0b57a45f299405dacca5abc8ee6",
|
||||
[
|
||||
|
|
17
tests/wpt/tests/css/CSS2/tables/collapsing-border-model-011.html
vendored
Normal file
17
tests/wpt/tests/css/CSS2/tables/collapsing-border-model-011.html
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<title>CSS Test: Tables under the collapsing borders model don't have padding</title>
|
||||
<link rel="author" title="Oriol Brufau" href="obrufau@igalia.com">
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#collapsing-borders">
|
||||
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
|
||||
<style>
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
box-sizing: content-box;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
padding: 100px;
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square.</p>
|
||||
<table></table>
|
17
tests/wpt/tests/css/CSS2/tables/collapsing-border-model-012.html
vendored
Normal file
17
tests/wpt/tests/css/CSS2/tables/collapsing-border-model-012.html
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<title>CSS Test: Tables under the collapsing borders model don't have padding</title>
|
||||
<link rel="author" title="Oriol Brufau" href="obrufau@igalia.com">
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#collapsing-borders">
|
||||
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
|
||||
<style>
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
box-sizing: border-box;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
padding: 100px;
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square.</p>
|
||||
<table></table>
|
22
tests/wpt/tests/css/CSS2/tables/collapsing-border-model-013.html
vendored
Normal file
22
tests/wpt/tests/css/CSS2/tables/collapsing-border-model-013.html
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<title>CSS Test: Tables under the collapsing borders model don't have padding</title>
|
||||
<link rel="author" title="Oriol Brufau" href="obrufau@igalia.com">
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#collapsing-borders">
|
||||
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
|
||||
<style>
|
||||
div {
|
||||
float: left;
|
||||
background: green;
|
||||
}
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
box-sizing: content-box;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
padding: 100px;
|
||||
}
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square.</p>
|
||||
<div>
|
||||
<table></table>
|
||||
</div>
|
22
tests/wpt/tests/css/CSS2/tables/collapsing-border-model-014.html
vendored
Normal file
22
tests/wpt/tests/css/CSS2/tables/collapsing-border-model-014.html
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<title>CSS Test: Tables under the collapsing borders model don't have padding</title>
|
||||
<link rel="author" title="Oriol Brufau" href="obrufau@igalia.com">
|
||||
<link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#collapsing-borders">
|
||||
<link rel="match" href="../../reference/ref-filled-green-100px-square-only.html">
|
||||
<style>
|
||||
div {
|
||||
float: left;
|
||||
background: green;
|
||||
}
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
box-sizing: border-box;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
padding: 100px;
|
||||
}
|
||||
</style>
|
||||
<p>Test passes if there is a filled green square.</p>
|
||||
<div>
|
||||
<table></table>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue