2007-05-04 03:11:00 +04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en-US">
|
|
|
|
<head>
|
Bug 1322780 - Part 2: Support unprefixed min-content and max-content. r=mats,emilio
Support unprefixed min-content and max-content and treat the prefixed
version as aliases for
1. width, min-width, max-width if inline-axis is horizontal, and
2. height, min-height, max-height if inline-axis is vertical, and
3. inline-size, min-inline-size, max-inline-size, and
4. flex-basis.
Besides, update the test cases to use unprefixed max-content and
min-content.
Depends on D7535
Differential Revision: https://phabricator.services.mozilla.com/D7536
--HG--
extra : moz-landing-system : lando
2018-12-18 21:47:37 +03:00
|
|
|
<title>max-content, min-content, -moz-fit-content, and -moz-available values of CSS width property, on blocks</title>
|
2007-05-04 03:11:00 +04:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
|
<meta http-equiv="Content-Style-Type" content="text/css">
|
|
|
|
<style type="text/css">
|
|
|
|
|
|
|
|
body { font-size: 10px; line-height: 1; }
|
|
|
|
|
|
|
|
div {
|
|
|
|
margin-left: 1px;
|
|
|
|
border-left: 2px solid;
|
|
|
|
padding-left: 4px;
|
|
|
|
padding-right: 8px;
|
|
|
|
border-right: 16px solid;
|
|
|
|
margin-right: 32px;
|
|
|
|
|
|
|
|
background: yellow;
|
|
|
|
margin-bottom: 1px;
|
|
|
|
}
|
|
|
|
|
Bug 1322780 - Part 2: Support unprefixed min-content and max-content. r=mats,emilio
Support unprefixed min-content and max-content and treat the prefixed
version as aliases for
1. width, min-width, max-width if inline-axis is horizontal, and
2. height, min-height, max-height if inline-axis is vertical, and
3. inline-size, min-inline-size, max-inline-size, and
4. flex-basis.
Besides, update the test cases to use unprefixed max-content and
min-content.
Depends on D7535
Differential Revision: https://phabricator.services.mozilla.com/D7536
--HG--
extra : moz-landing-system : lando
2018-12-18 21:47:37 +03:00
|
|
|
div.v1 { width: max-content; }
|
|
|
|
div.v2 { width: min-content; }
|
2007-11-15 21:10:31 +03:00
|
|
|
div.v3 { width: -moz-fit-content; }
|
|
|
|
div.v4 { width: -moz-available; }
|
2007-05-04 03:11:00 +04:00
|
|
|
|
2014-02-06 23:32:05 +04:00
|
|
|
div.s1 { box-sizing: content; }
|
|
|
|
div.s2 { box-sizing: padding; }
|
|
|
|
div.s3 { box-sizing: border; }
|
2007-05-04 03:11:00 +04:00
|
|
|
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body style="width: 100px">
|
|
|
|
<div class="v1 s1">A B</div>
|
|
|
|
<div class="v1 s2">A B</div>
|
|
|
|
<div class="v1 s3">A B</div>
|
|
|
|
<div class="v2 s1">A B</div>
|
|
|
|
<div class="v2 s2">A B</div>
|
|
|
|
<div class="v2 s3">A B</div>
|
|
|
|
<div class="v3 s1">A B</div>
|
|
|
|
<div class="v3 s2">A B</div>
|
|
|
|
<div class="v3 s3">A B</div>
|
|
|
|
<div class="v3 s1">A B C D E F G H I J</div>
|
|
|
|
<div class="v3 s2">A B C D E F G H I J</div>
|
|
|
|
<div class="v3 s3">A B C D E F G H I J</div>
|
|
|
|
<div class="v3 s1">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA B</div>
|
|
|
|
<div class="v3 s2">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA B</div>
|
|
|
|
<div class="v3 s3">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA B</div>
|
|
|
|
<div class="v4 s1">A B</div>
|
|
|
|
<div class="v4 s2">A B</div>
|
|
|
|
<div class="v4 s3">A B</div>
|
|
|
|
</body>
|
|
|
|
</html>
|