Files
Tim Nguyen a755342a3e Bug 1939869 [wpt PR 49899] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=277093, a=testonly
Automatic update from web-platform-tests
WebKit export: [Grid][Replaced] Grid item which is an image with specified sizes fails to update when src changes (#49899)

https://bugs.webkit.org/show_bug.cgi?id=277093

Co-authored-by: Sammy Gill <[email protected]>
--

wpt-commits: 9143398aaa00ad6c8e9a38b5b16f5c7b4b597785
wpt-pr: 49899
2025-01-10 09:26:27 +00:00

27 lines
623 B
HTML

<!DOCTYPE html>
<html>
<link rel="author" title="Sammy Gill" href="mailto:[email protected]">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<link rel="help" href="https://drafts.csswg.org/css-grid/">
<meta name="assert" content="Grid goes through layout when image src changes">
<style>
div {
display: grid;
}
img {
width: 100px;
height: 100%;
}
</style>
<body>
<p>Test passes if there is a filled green square.</p>
<div>
<img src="">
</div>
</body>
<script>
document.body.offsetHeight;
document.querySelector("img").src = "grid-items/support/100x100-green.png";
</script>
</html>