Skip to content

Commit f102c09

Browse files
WebKit export: RenderReplaced::computeAspectRatioInformationForRenderBox does not need to call into RenderBox::computeReplacedLogicalWidth (#54564)
https://bugs.webkit.org/show_bug.cgi?id=252589 Co-authored-by: Sammy Gill <[email protected]>
1 parent bbabade commit f102c09

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta name="assert" content="Video that has no intrinsic size should have height constrained by max-width">
5+
<link rel="help" href="https://w3c.github.io/csswg-drafts/css-sizing-4/#aspect-ratio-size-transfers">
6+
<link author="Sammy Gill" href="mailto:[email protected]">
7+
<link rel="match" href="/css/reference/ref-filled-green-100px-square.xht">
8+
<style>
9+
video {
10+
background-color: green;
11+
width: auto;
12+
height: auto;
13+
max-width: 100px;
14+
}
15+
</style>
16+
</head>
17+
<!-- aspect-ratio should be set to: auto 100 / 100-->
18+
<body>
19+
<p>Test passes if there is a filled green square.</p>
20+
<video width="100" height="100" src="/css/support/60x60-green.png">
21+
</body>
22+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta name="assert" content="Video that has no intrinsic size should have width constrained by max-height">
5+
<link rel="help" href="https://w3c.github.io/csswg-drafts/css-sizing-4/#aspect-ratio-size-transfers">
6+
<link author="Sammy Gill" href="mailto:[email protected]">
7+
<link rel="match" href="/css/reference/ref-filled-green-100px-square.xht">
8+
<style>
9+
video {
10+
background-color: green;
11+
width: auto;
12+
height: auto;
13+
max-height: 100px;
14+
}
15+
</style>
16+
</head>
17+
<!-- aspect-ratio should be set to: auto 100 / 100-->
18+
<body>
19+
<p>Test passes if there is a filled green square.</p>
20+
<video width="100" height="100" src="/css/support/60x60-green.png">
21+
</body>
22+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<link author="Sammy Gill" href="mailto:[email protected]">
5+
<meta name="assert" content="Applying inline-size containment to the video should not result in a debug assert being triggered">
6+
<style>
7+
video {
8+
aspect-ratio: 1;
9+
container-type: inline-size;
10+
inset: 0 auto;
11+
min-width: min-content;
12+
position: fixed;
13+
}
14+
</style>
15+
</head>
16+
<body>
17+
<video></video>
18+
</body>
19+
</html>

0 commit comments

Comments
 (0)