New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test aspect-ratio affects the min/max sizes #34738
Test aspect-ratio affects the min/max sizes #34738
Conversation
… element is with aspect-ratio
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Behavior assertions all LGTM. The many review comments are all about the metadata and comments.
Thanks for writing these. (Hopefully our understanding is correct! But if not, these tests will give us something concrete to discuss.)
|
||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
|
||
<div style="background: green; height: 100px; aspect-ratio: 2 / 1; max-width: 100px;"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
height:100px
transferred through aspect-ratio: 2 / 1
says to give it a 200px width, the auto min size says to give it a 200px width, but max-width should beat both of those. LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review:)
<!DOCTYPE html> | ||
<title>CSS aspect-ratio: The definite max-height should win the transferred minimum height</title> | ||
<link rel="author" title="Cathie Chen" href="mailto:cchen@igalia.com"> | ||
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio-minimum"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this reference to https://drafts.csswg.org/css-sizing-4/#aspect-ratio-size-transfers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, thanks!
<link rel="author" title="Cathie Chen" href="mailto:cchen@igalia.com"> | ||
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio-minimum"> | ||
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht" /> | ||
<meta name="assert" content="CSS aspect-ratio: The definite max-height should win the transferred minimum height."> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no transferred minimum height here. Maybe you meant this as transferred maximum height? Same applies to line 2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
<!DOCTYPE html> | ||
<title>CSS aspect-ratio: The definite max-width should win the transferred minimum width</title> | ||
<link rel="author" title="Cathie Chen" href="mailto:cchen@igalia.com"> | ||
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio-minimum"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this reference as above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
<link rel="author" title="Cathie Chen" href="mailto:cchen@igalia.com"> | ||
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio-minimum"> | ||
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht" /> | ||
<meta name="assert" content="The definite max-width should win the transferred minimum width."> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/minimum/maximum/ here and line 2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -0,0 +1,12 @@ | |||
<!DOCTYPE html> | |||
<title>CSS aspect-ratio: The transferred minimum height beats the automatic content-based minimum height</title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here and Line 6 below, I think you mean "transferred maximum".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -0,0 +1,12 @@ | |||
<!DOCTYPE html> | |||
<title>CSS aspect-ratio: The transferred minimum width beats the automatic content-based minimum width</title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Transferred maximum here and line 6?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Hi,
This patch adds tests for the discussion in w3c/csswg-drafts#7461
According to the discussion, we have this priorities order list: