https://github.com/web-platform-tests/wpt
Raw File
Tip revision: c952312a927eb56c33bf72d2062c6986cac96ff0 authored by Darwin Huang on 26 December 2018, 21:55:09 UTC
Async Clipboard Refactor: Update tests to use arrow functions
Tip revision: c952312
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