mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-07 23:59:22 +03:00
3c259224b6
Test 2 now works against chromium, but test 1 still fails because height: fill-available isn't implemented yet.
54 lines
1.1 KiB
HTML
54 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
body {
|
|
background: blue;
|
|
}
|
|
|
|
#flexbox-container {
|
|
background: black;
|
|
position: absolute;*
|
|
top: 100px;
|
|
left: 100px;
|
|
height: 200px;
|
|
width: 200px;
|
|
display: -webkit-flex;
|
|
-webkit-flex-direction: column;
|
|
overflow: hidden;
|
|
border: 1px solid navy;
|
|
}
|
|
|
|
#flexbox-item-1 {
|
|
background: green;
|
|
position: relative;
|
|
overflow: auto;
|
|
-webkit-flex: 1 0 100%;
|
|
}
|
|
|
|
#flexbox-item-1-content {
|
|
width: -webkit-fill-available;
|
|
min-height: -webkit-fill-available;
|
|
height: -webkit-fill-available;
|
|
background: purple;
|
|
}
|
|
|
|
#flexbox-item-2 {
|
|
background: orange;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="flexbox-container">
|
|
<div id="flexbox-item-1">
|
|
<div id="flexbox-item-1-content">
|
|
I should be 100% of the height of my container, right?
|
|
</div>
|
|
</div>
|
|
<div id="flexbox-item-2">
|
|
I don't have a flex property, so I should have an auto height
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|