wpt / css / printing / input-file-print.html

Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/printing/input-file-print.html

<!DOCTYPE html>
<head>
  <meta charset="utf-8">
  <title>Test that file-input widgets have 'auto' height (not some other arbitrary value) when printed</title>
  <meta name="assert" content="file-input widgets should have 'auto' height (not some other arbitrary value) when printed">
  <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=133984">
  <link rel="match" href="input-file-print-ref.html">
  <style>
    .with-outline {
      outline: 2px solid teal;
    }
    .wrapper {
      border: 2px solid fuchsia;
    }
  </style>
</head>
<body>
  <input type="file">
  <br><br>
  <input type="file" class="with-outline">
  <br><br>
  <div class="wrapper"><input type="file"></div>
</body>

/css/printing/input-file-print-ref.html

<!DOCTYPE html>
<head>
  <meta charset="utf-8">
  <title>Reference case</title>
  <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=133984">
  <style>
    input[type="file"] { height: auto; }
    .with-outline {
      outline: 2px solid teal;
    }
    .wrapper {
      border: 2px solid fuchsia;
    }
  </style>
</head>
<body>
  <input type="file">
  <br><br>
  <input type="file" class="with-outline">
  <br><br>
  <div class="wrapper"><input type="file"></div>
</body>