<!doctype html>
<title>Calc gets resolved with 0 percent basis for intrinsic size computation</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="match" href="inline-intrinsic-size-calc-ref.html">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1733952">
<link rel="help" href="https://drafts.csswg.org/css-sizing/#cyclic-percentage-contribution">
<style>
  div {
    background-color: green;
    width: max-content;
  }
  span {
    margin-left: calc(0% + 30px);
    padding-left: calc(0% + 50px);
  }
</style>
<div>
  <span>ABCD</span>
</div>
