Skip to content

Commit f5961c7

Browse files
khushalsagarmoz-wptsync-bot
authored andcommitted
Bug 1789906 [wpt PR 35837] - blink: Remove 'overflow:clip' UA CSS for root svg elements., a=testonly
Automatic update from web-platform-tests blink: Remove 'overflow:clip' UA CSS for root svg elements. SVG elements use 'overflow:hidden' via UA CSS to clip to the content-box by default. This should be 'overflow:clip' but hidden ensures backwards compat with flex layout. The used value for painting is still clip. See w3c/csswg-drafts#7714 for details. [email protected] Bug: 1358820 Change-Id: I79fb2e334ca72807ca6e3b12d85c1f8a33a9f086 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3884796 Auto-Submit: Khushal Sagar <[email protected]> Reviewed-by: Ian Kilpatrick <[email protected]> Commit-Queue: Khushal Sagar <[email protected]> Commit-Queue: Ian Kilpatrick <[email protected]> Cr-Commit-Position: refs/heads/main@{#1048721} -- wpt-commits: 1647654b1e2904e6f729409e3cea8ed4d6bdde8c wpt-pr: 35837
1 parent 6676d90 commit f5961c7

File tree

4 files changed

+42
-0
lines changed

4 files changed

+42
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!doctype html>
2+
<meta charset="utf-8">
3+
<title>display:flex on svg uses 0 as min size with default overflow</title>
4+
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#valdef-overflow">
5+
<link rel="author" title="Khushal Sagar" href="mailto:[email protected]">
6+
<style>
7+
body {
8+
background: lightblue;
9+
}
10+
div {
11+
width: 100px;
12+
height: 100px;
13+
background: green;
14+
}
15+
</style>
16+
<div></div>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!doctype html>
2+
<meta charset="utf-8">
3+
<title>display:flex on svg uses 0 as min size with default overflow</title>
4+
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#valdef-overflow">
5+
<link rel="author" title="Khushal Sagar" href="mailto:[email protected]">
6+
<link rel="match" href="display-flex-svg-overflow-default-ref.html">
7+
<style>
8+
body {
9+
background: lightblue;
10+
}
11+
div {
12+
display: flex;
13+
width: 100px;
14+
height: 100px;
15+
}
16+
svg {
17+
flex-grow: 1;
18+
}
19+
</style>
20+
<div>
21+
<svg>
22+
<rect width="150" height="150" fill="green"></rect>
23+
</svg>
24+
</div>

testing/web-platform/tests/css/css-overflow/overflow-clip-x-visible-y-svg.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
width: 100px;
1010
height: 100px;
1111
overflow-y: visible;
12+
overflow-x: clip;
1213
}
1314
</style>
1415
<svg>

testing/web-platform/tests/css/css-overflow/overflow-clip-y-visible-x-svg.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
width: 100px;
1010
height: 100px;
1111
overflow-x: visible;
12+
overflow-y: clip;
1213
}
1314
</style>
1415
<svg>

0 commit comments

Comments
 (0)