| Index: LayoutTests/fast/css-grid-layout/float-not-protruding-into-next-grid-item.html
|
| diff --git a/LayoutTests/fast/css-grid-layout/float-not-protruding-into-next-grid-item.html b/LayoutTests/fast/css-grid-layout/float-not-protruding-into-next-grid-item.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3bdc82795e5d887fa97dc79577dbd9e3f510844d
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/css-grid-layout/float-not-protruding-into-next-grid-item.html
|
| @@ -0,0 +1,38 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<link href="resources/grid.css" rel="stylesheet">
|
| +<style>
|
| +.grid {
|
| + grid-auto-columns: minmax(50px, max-content);
|
| + grid-auto-rows: minmax(50px, max-content);
|
| + width: -webkit-fit-content;
|
| +}
|
| +
|
| +.floatChild {
|
| + float: left;
|
| + clear: both;
|
| +}
|
| +
|
| +</style>
|
| +</style>
|
| +</head>
|
| +
|
| +<body>
|
| +
|
| +<div>This test checks that grid item sets a new formatting context for its content, preventing any 'float' protruding content on the adjoining grid item ('Float' text shouldn't overflow the first row).</div>
|
| +
|
| +<div class="grid">
|
| + <div class="firstRowFirstColumn">
|
| + <div class="floatChild">Float</div>
|
| + <div class="floatChild">Float</div>
|
| + <div class="floatChild">Float</div>
|
| + <div class="floatChild">Float</div>
|
| + </div>
|
| + <div class="firstRowSecondColumn"></div>
|
| + <div class="secondRowFirstColumn"></div>
|
| + <div class="secondRowSecondColumn"></div>
|
| +</div>
|
| +
|
| +</body>
|
| +</html>
|
|
|