forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1646100 - Compute {min|max|fit}-content from the definite block-s…
…ize and aspect-ratio. r=TYLin,emilio ComputeISizeValue() takes aspect-ratio into account. Also, add a ComputeSizeFlag which skips aspect-ratio in ComputeISizeValue(), so internal table boxes can use this flag to skip aspect-ratio. Differential Revision: https://phabricator.services.mozilla.com/D99290
- Loading branch information
1 parent
8d1403f
commit eff538f
Showing
8 changed files
with
94 additions
and
24 deletions.
There are no files selected for viewing
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
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
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
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
2 changes: 0 additions & 2 deletions
2
testing/web-platform/meta/css/css-sizing/aspect-ratio/intrinsic-size-004.html.ini
This file was deleted.
Oops, something went wrong.
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
19 changes: 19 additions & 0 deletions
19
testing/web-platform/tests/css/css-sizing/aspect-ratio/intrinsic-size-011.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,19 @@ | ||
<!DOCTYPE html> | ||
<title>CSS aspect-ratio: fit-content size keyword</title> | ||
<link rel="author" title="Mozilla" href="https://www.mozilla.org/"> | ||
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio"> | ||
<link rel="help" href="https://drafts.csswg.org/css-sizing-4/#valdef-width-fit-content"> | ||
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5032"> | ||
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht" /> | ||
<style> | ||
div { | ||
background: green; | ||
aspect-ratio: 2/1; | ||
} | ||
</style> | ||
|
||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
|
||
<div style="height: 50px; width: -moz-fit-content; width: fit-content;"></div> | ||
<!-- fit-content in the block axis is treated as auto --> | ||
<div style="height: -moz-fit-content; height: fit-content; width: 100px;"></div> |
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