forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overflow-clip-margin: Ignore margin if overflow:scroll/hidden.
This patch ensures that we overflow:scroll and overflow:hidden do not expand the bounds of the clip, even if we have contain: paint (which clips to overflow clip edge). R=ikilpatrick@chromium.org, chrishtr@chromium.org Fixed: 1252885 Change-Id: Ie52be3b9201a70e3de014f190cbd3ce00b170d9b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3330347 Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Vladimir Levin <vmpstr@chromium.org> Cr-Commit-Position: refs/heads/main@{#952433}
- Loading branch information
Showing
9 changed files
with
97 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
third_party/blink/web_tests/external/wpt/css/css-overflow/overflow-clip-margin-008-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!doctype html> | ||
<html class="reftest"> | ||
<meta charset="utf-8"> | ||
<title>Overflow-clip-margin has no effect with overflow:scroll and paint containment (ref)</title> | ||
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin"> | ||
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org"> | ||
<style> | ||
.container { | ||
width: 100px; | ||
height: 100px; | ||
contain: paint; | ||
overflow: scroll; | ||
} | ||
.child { | ||
width: 200px; | ||
height: 200px; | ||
background: lightblue; | ||
} | ||
</style> | ||
<div class=container> | ||
<div class=child></div> | ||
</div> |
24 changes: 24 additions & 0 deletions
24
third_party/blink/web_tests/external/wpt/css/css-overflow/overflow-clip-margin-008.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!doctype html> | ||
<html class="reftest"> | ||
<meta charset="utf-8"> | ||
<title>Overflow-clip-margin has no effect with overflow:scroll and paint containment </title> | ||
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#propdef-overflow-clip-margin"> | ||
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org"> | ||
<link rel="match" href="overflow-clip-margin-008-ref.html"> | ||
<style> | ||
.container { | ||
width: 100px; | ||
height: 100px; | ||
overflow-clip-margin: 20px; | ||
contain: paint; | ||
overflow: scroll; | ||
} | ||
.child { | ||
width: 200px; | ||
height: 200px; | ||
background: lightblue; | ||
} | ||
</style> | ||
<div class=container> | ||
<div class=child></div> | ||
</div> |