2016-09-15 12:41:15 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<script>
|
|
|
|
function scroll() {
|
|
|
|
document.getElementsByTagName("div")[0].scrollTop = 200;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<body onload="scroll()">
|
|
|
|
<div style="height: 300px;
|
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
|
|
|
width: min-content;
|
2016-09-15 12:41:15 +03:00
|
|
|
font-size: 0;
|
|
|
|
line-height: 0;
|
|
|
|
border: 1px solid gray;
|
|
|
|
overflow: scroll;">
|
|
|
|
<div style="height: 100%;
|
|
|
|
width: 100px;
|
|
|
|
border: 50px solid blue;">
|