Skip to content

Commit 54aa3b6

Browse files
Mats Palmgrenmoz-wptsync-bot
authored andcommitted
Make 'contain:size' not apply to inline-table boxes.
Differential Revision: https://phabricator.services.mozilla.com/D42891 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1575560 gecko-commit: 70cbd9da42a648bcabfe970f219880dee25144fc gecko-integration-branch: autoland gecko-reviewers: emilio
1 parent 7ce4824 commit 54aa3b6

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

css/css-contain/contain-size-012.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<!DOCTYPE html>
22
<meta charset="utf-8">
3-
<title>CSS Containment Test: Size containment on table</title>
3+
<title>CSS Containment Test: Size containment on display:table</title>
44
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:[email protected]">
55
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-size">
66
<link rel="match" href="reference/pass_if_pass_below_clipped.html">
7-
<meta name=assert content="Size containment doesn't apply to table elements.">
7+
<meta name=assert content="Size containment doesn't apply to table boxes.">
88
<style>
99
div {
1010
display: table;
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>CSS Containment Test: Size containment on display:inline-table</title>
4+
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:[email protected]">
5+
<link rel="author" title="Mats Palmgren" href="mailto:[email protected]">
6+
<link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-size">
7+
<link rel="match" href="reference/pass_if_pass_below_clipped.html">
8+
<meta name=assert content="Size containment doesn't apply to inline-table boxes.">
9+
<style>
10+
div {
11+
display: inline-table;
12+
contain: size;
13+
overflow: hidden;
14+
}
15+
</style>
16+
17+
<p>Test passes if there is the word "PASS" below.</p>
18+
<div>PASS</div>

0 commit comments

Comments
 (0)