-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[carousel] Fix layout parent style for carousel pseudos
Fixed: 392661390 Change-Id: Iea39c18abd88032b948bda10adabfd3abac07bfe Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6211837 Reviewed-by: Morten Stenshorne <[email protected]> Commit-Queue: Daniil Sakhapov <[email protected]> Cr-Commit-Position: refs/heads/main@{#1413415}
- Loading branch information
1 parent
316fa8a
commit 364ae9a
Showing
3 changed files
with
81 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Overflow Test: root element with ::scroll-marker-group and ::scroll-buttons() doesn't crasah</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-buttons"> | ||
<link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-marker-group"> | ||
<style> | ||
html { | ||
overflow: auto; | ||
scroll-marker-group: before; | ||
} | ||
html::scroll-marker-group { | ||
width: 100px; | ||
height: 100px; | ||
} | ||
html::scroll-button(left) { | ||
content: ""; | ||
width: 100px; | ||
height: 100px; | ||
} | ||
</style> |
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,35 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Overflow Test: ::scroll-buttons() have correct layout parent</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-buttons"> | ||
<link rel="match" href="../reference/ref-filled-green-100px-square.xht"> | ||
<style> | ||
#sc { | ||
z-index: 1; | ||
overflow: hidden; | ||
width: 100px; | ||
height: 100px; | ||
background: red; | ||
} | ||
#sc::scroll-button(left) { | ||
content: ""; | ||
border: none; | ||
margin-left: -100px; | ||
z-index: 2; | ||
width: 50px; | ||
height: 100px; | ||
background: green; | ||
} | ||
#sc::scroll-button(right) { | ||
content: ""; | ||
border: none; | ||
z-index: 2; | ||
width: 50px; | ||
height: 100px; | ||
background: green; | ||
} | ||
</style> | ||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
<div style="display:flex;"> | ||
<div id="sc"></div> | ||
</div> |
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,26 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Overflow Test: ::scroll-marker-group has correct layout parent</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-marker-group"> | ||
<link rel="match" href="../reference/ref-filled-green-100px-square.xht"> | ||
<style> | ||
#sc { | ||
z-index: 1; | ||
overflow: hidden; | ||
scroll-marker-group: before; | ||
margin-left: -100px; | ||
width: 100px; | ||
height: 100px; | ||
background: red; | ||
} | ||
#sc::scroll-marker-group { | ||
z-index: 2; | ||
width: 100px; | ||
height: 100px; | ||
background: green; | ||
} | ||
</style> | ||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
<div style="display:flex;"> | ||
<div id="sc"></div> | ||
</div> |