Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
REGRESSION (259663@main): lowes.com: Product image is blank
https://commits.webkit.org/262342@main
  • Loading branch information
sammygill authored Mar 30, 2023
1 parent 8b9f4e2 commit bbb795f
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Sammy Gill" href="mailto:[email protected]">
<link rel="help" href="https://w3c.github.io/csswg-drafts/css2/#propdef-min-height">
<meta name="assert" content="Image percentage min-height cannot be resolved and used value should be 0">
</head>
<body>
<img src="/css/support/60x60-green.png">
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Sammy Gill" href="mailto:[email protected]">
<link rel="help" href="https://w3c.github.io/csswg-drafts/css2/#propdef-min-height">
<link rel="match" href="grid-item-image-percentage-min-height-computes-as-0-ref.html">
<meta name="assert" content="Image percentage min-height cannot be resolved and used value should be 0">
<style>
.grid {
display: grid;
}
.grid-item {
display: grid;
}
.grid-item img {
height: var(--grid-item-height, auto);
min-height: 100%;
}
</style>
</head>
<body>
<div class="grid">
<div class="grid-item">
<img src="/css/support/60x60-green.png">
</div>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Sammy Gill" href="mailto:[email protected]">
<link rel="help" href="https://w3c.github.io/csswg-drafts/css2/#propdef-max-height">
<meta name="assert" content="Image percentage max-height cannot be resolved and used value should be none">
</head>
<body>
<img src="/css/support/60x60-green.png">
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<link rel="author" title="Sammy Gill" href="mailto:[email protected]">
<link rel="help" href="https://w3c.github.io/csswg-drafts/css2/#propdef-max-height">
<link rel="match" href="nested-flexbox-image-percentage-max-height-computes-as-none-ref.html">
<meta name="assert" content="Image percentage max-height cannot be resolved and used value should be none">
<style>
body {
height: 100px;
}
svg {
position: relative;
max-width: 100%;
max-height: 100%;
contain: size;
contain-intrinsic-size: 60px 60px;
aspect-ratio: 1/1;
}
.outer-flexbox {
display: flex;
width: 100%;
height: 100%;
}
.outer-flexbox-item {
position: relative;
min-width: 100%;
}
.inner-flexbox {
position: absolute;
display: flex;
inset: 0px;
}
</style>
</head>
<body>
<div class="outer-flexbox">
<div class="outer-flexbox-item">
<div class="inner-flexbox">
<div>
<svg viewBox="0 0 1 1" style="background: green"></svg>
</div>
</div>
</div>
</div>
</body>
</html>

0 comments on commit bbb795f

Please sign in to comment.