Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-sizing/image-min-max-content-intrinsic-size-change-008.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html class="reftest-wait">
<title>CSS Test: Image size is not altered when it loads when min/max-size depends on the transferred intrinsic sizes, not natural sizes</title>
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="match" href="image-min-max-content-intrinsic-size-change-003-ref.html">
<style>
img {
border: 1px solid black;
height: 80px;
width: 70px;
max-height: max-content;
writing-mode: vertical-lr;
}
</style>
<img>
<script>
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";
</script>