mirror of
https://github.com/servo/servo.git
synced 2025-09-27 07:10:19 +01:00
layout: Avoid fixed table layout when inline-size
is max-content
(#39474)
This undoes #35882 according to the last CSSWG resolution, since this is required by web compat. Testing: Modifying the relevant test Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
e4f3705494
commit
454d6052b4
3 changed files with 9 additions and 6 deletions
2
tests/wpt/meta/MANIFEST.json
vendored
2
tests/wpt/meta/MANIFEST.json
vendored
|
@ -618521,7 +618521,7 @@
|
|||
]
|
||||
],
|
||||
"fixed-layout-2.html": [
|
||||
"d751954714cd7b8c1f5b87182d1025474c5c4939",
|
||||
"1b07b57c781ea0e3766d579f8480a899d66007cb",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<link rel="author" title="Oriol Brufau" href="obrufau@igalia.com">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#in-fixed-mode">
|
||||
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/10937">
|
||||
<meta name="assert" content="Fixed table layout is triggered except when inline-size is auto.">
|
||||
<meta name="assert" content="Fixed table layout is triggered except when inline-size is auto or max-content.">
|
||||
<link rel="stylesheet" href="./support/base.css">
|
||||
|
||||
<style>
|
||||
|
@ -103,7 +103,7 @@ function checkSize(size, allowsFixed) {
|
|||
|
||||
for (let size of sizes) {
|
||||
if (CSS.supports("width", size)) {
|
||||
let allowsFixed = size !== "auto";
|
||||
let allowsFixed = size !== "auto" && size !== "max-content";
|
||||
checkSize(size, allowsFixed);
|
||||
|
||||
// calc-size() should trigger fixed table layout.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue