https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 35bf9454005e238dcac8129c9d4394ed592db8fd authored by Ovidio Henriquez on 21 March 2018, 23:50:55 UTC
bluetooth: FakeBluetoothChooserServerClient impl.
Tip revision: 35bf945
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