wpt / css / css-viewport / zoom / explicit-inherit / flex-basis.html

Status: FAIL | Duration: 9ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-viewport/zoom/explicit-inherit/flex-basis.html

<!DOCTYPE html>
<title>flex-basis:inherit applies zoom</title>
<link rel=help href=https://drafts.csswg.org/css-flexbox/>
<link rel=help href=https://drafts.csswg.org/css-viewport/>
<link rel=match href=flex-basis-ref.html>
<style>
  .container {
    display: flex;
    background: skyblue;
    flex-basis: 50px; /* For explicit inheritance. */
  }
  .zoomed {
    background: coral;
    zoom: 2;
    flex-basis: inherit;
    height: 100px;
  }
</style>
<div class=container>
  <div class=zoomed></div>
</div>

/css/css-viewport/zoom/explicit-inherit/flex-basis-ref.html

<!DOCTYPE html>
<title>flex-basis:inherit applies zoom (ref)</title>
<link rel=help href=https://drafts.csswg.org/css-viewport/>
<style>
  .container {
    display: flex;
    background: skyblue;
  }
  .zoomed {
    background: coral;
    flex-basis: 100px;
    height: 200px;
  }
</style>
<div class=container>
  <div class=zoomed></div>
</div>