chromium/third_party/blink/web_tests/wpt_internal/printing/page-width-fit-content-print.html

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">
<link rel="help" href="https://www.w3.org/TR/css-page-3/#at-page-rule">
<link rel="match" href="page-width-fit-content-print-ref.html">
<!-- Intrinsic size is currently resolved to 0, which means that the page size
     will be unusable, and that we should therefore fall back to default page
     size. -->
<style>
  @page {
    size: 10in;
    margin: 66cm;
    width: fit-content;
  }
</style>
<div style="position:absolute; right:0; bottom:0; width:50px; height:50px; background:blue;"></div>