Skip to content

Commit

Permalink
WebKit export: [Grid][Replaced] Grid item which is an image with spec…
Browse files Browse the repository at this point in the history
…ified sizes fails to update when src changes (web-platform-tests#49899)

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

Co-authored-by: Sammy Gill <[email protected]>
  • Loading branch information
nt1m and sammygill authored Jan 3, 2025
1 parent 8bcb543 commit 9143398
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions css/css-grid/img-src-changes.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!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>

0 comments on commit 9143398

Please sign in to comment.