Skip to content

Commit 92423a5

Browse files
Loirooriolservo-wpt-sync
authored andcommitted
layout: Avoid fixed table layout when inline-size is max-content
This undoes #35882 according to the last CSSWG resolution, since this is required by web compat. Signed-off-by: Oriol Brufau <[email protected]>
1 parent d49ad7c commit 92423a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

css/css-tables/fixed-layout-2.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<link rel="author" title="Oriol Brufau" href="[email protected]">
44
<link rel="help" href="https://drafts.csswg.org/css-tables-3/#in-fixed-mode">
55
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/10937">
6-
<meta name="assert" content="Fixed table layout is triggered except when inline-size is auto.">
6+
<meta name="assert" content="Fixed table layout is triggered except when inline-size is auto or max-content.">
77
<link rel="stylesheet" href="./support/base.css">
88

99
<style>
@@ -103,7 +103,7 @@ <h1>Fixed Layout</h1>
103103

104104
for (let size of sizes) {
105105
if (CSS.supports("width", size)) {
106-
let allowsFixed = size !== "auto";
106+
let allowsFixed = size !== "auto" && size !== "max-content";
107107
checkSize(size, allowsFixed);
108108

109109
// calc-size() should trigger fixed table layout.

0 commit comments

Comments
 (0)