mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Auto merge of #13192 - notriddle:master, r=pcwalton
Account for percentages in fixed table layout Don't just use the minimum length all the time. --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13166 (github issue number if applicable). - [X] There are tests for these changes <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13192) <!-- Reviewable:end -->
This commit is contained in:
commit
2d13178d29
5 changed files with 72 additions and 18 deletions
|
@ -1,3 +0,0 @@
|
|||
[floats-149.htm]
|
||||
type: reftest
|
||||
expected: FAIL
|
|
@ -1500,6 +1500,18 @@
|
|||
"url": "/_mozilla/css/first_of_type_pseudo_a.html"
|
||||
}
|
||||
],
|
||||
"css/fixed_percent.html": [
|
||||
{
|
||||
"path": "css/fixed_percent.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/fixed_percent_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/fixed_percent.html"
|
||||
}
|
||||
],
|
||||
"css/fixed_width_overrides_child_intrinsic_width_a.html": [
|
||||
{
|
||||
"path": "css/fixed_width_overrides_child_intrinsic_width_a.html",
|
||||
|
@ -10894,6 +10906,18 @@
|
|||
"url": "/_mozilla/css/first_of_type_pseudo_a.html"
|
||||
}
|
||||
],
|
||||
"css/fixed_percent.html": [
|
||||
{
|
||||
"path": "css/fixed_percent.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/fixed_percent_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/fixed_percent.html"
|
||||
}
|
||||
],
|
||||
"css/fixed_width_overrides_child_intrinsic_width_a.html": [
|
||||
{
|
||||
"path": "css/fixed_width_overrides_child_intrinsic_width_a.html",
|
||||
|
|
16
tests/wpt/mozilla/tests/css/fixed_percent.html
Normal file
16
tests/wpt/mozilla/tests/css/fixed_percent.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>Table with fixed layout gives according to percentages</title>
|
||||
<link rel="match" href="fixed_percent_ref.html">
|
||||
<link rel="spec" href="https://drafts.csswg.org/css-tables-3/#distributing-width-to-columns">
|
||||
<style>
|
||||
#c {
|
||||
display: table;
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
}
|
||||
#d {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
<div id=c><div id=d>Test text</div></div>
|
4
tests/wpt/mozilla/tests/css/fixed_percent_ref.html
Normal file
4
tests/wpt/mozilla/tests/css/fixed_percent_ref.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<!DOCTYPE html>
|
||||
<title>Table with fixed layout gives according to percentages</title>
|
||||
Test text
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue