mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10:00
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
27 lines
623 B
HTML
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>
|