-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=254603 (#39287)
REGRESSION (259663@main): lowes.com: Product image is blank https://commits.webkit.org/262342@main
- Loading branch information
Showing
4 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
css/css-sizing/grid-item-image-percentage-min-height-computes-as-0-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
28 changes: 28 additions & 0 deletions
28
css/css-sizing/grid-item-image-percentage-min-height-computes-as-0.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
11 changes: 11 additions & 0 deletions
11
css/css-sizing/nested-flexbox-image-percentage-max-height-computes-as-none-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
47 changes: 47 additions & 0 deletions
47
css/css-sizing/nested-flexbox-image-percentage-max-height-computes-as-none.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |