Files
ladybird/Tests/LibWeb/Ref/input/img-srcset-font-relative-sizes.html
Callum Law d3e04c96d9 LibWeb: Simplify SourceSet::normalize_source_densities
Relative lengths should be resolved against the initial font rather than
the element's font so all the work around updating layout is unnecessary
2025-09-04 10:05:44 +01:00

15 lines
630 B
HTML

<!DOCTYPE html>
<link rel="match" href="../expected/img-srcset-font-relative-sizes-ref.html" />
<div style="font-size: 10px">
<!-- Font relative units should be resolved relative to the initial font regardless of the img element's style -->
<img
sizes="10em"
srcset="
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2P4z8DwHwAFAAH/F1FwBgAAAABJRU5ErkJggg== 100w,
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2NgaGD4DwAChAGAZM0bBgAAAABJRU5ErkJggg== 200w
"
width="400"
height="400"
/>
</div>