blob: 7dcf1102fb9cbf6a9495d6ef11ba8de111c4f12d [file] [log] [blame]
<!doctype html>
<html class="reftest-wait">
<title>CSS Test: Image size is updated properly when intrinsic size changes, even with a fixed width and height, if their min-size depends on their intrinsic size</title>
<link rel="author" href="" title="Emilio Cobos Álvarez">
<link rel="author" href="" title="Mozilla">
<link rel="help" href="">
<link rel="help" href="">
<link rel="match" href="image-min-max-content-intrinsic-size-change-001-ref.html">
img {
border: 1px solid black;
height: 30px;
width: 30px;
min-width: min-content;
let img = document.querySelector("img");
img.offsetWidth; // Ensure the image is laid out.
img.onload = () => document.documentElement.className = "";
img.src = "/css/support/60x60-green.png";