https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 962d90000cca374f4756bc65ea024e06c0150499 authored by Philip Jägenstedt on 22 December 2018, 11:59:40 UTC
DO NOT MERGE: probe for idlharness.js flakiness
Tip revision: 962d900
percentage-widths-001-ref.html
<!DOCTYPE html>
<link rel="author" title="Google Inc." href="http://www.google.com/">
<style>
body {
  position: relative;
  width: 600px;
  height: 800px;
}

#container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
}

#top-bar {
  background-color: green;
  width: 100px;
}

#content {
  background-color: blue;
  width: 500px;
}
</style>


<div id="container">
  <div id="top-bar">
  Tests that percentage widths get resolved correctly when the flexbox is
  </div>
  <div id="content">
  absolutely positioned without an explicit width. You should see no red.
  </div>
</div>


back to top