gecko-dev/layout/reftests/writing-mode/1302389-scrolled-rect-2-ref.html
Boris Chiou c35f47093e 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 18:47:37 +00:00

17 lines
419 B
HTML

<!DOCTYPE html>
<script>
function scroll() {
document.getElementsByTagName("div")[0].scrollTop = 200;
}
</script>
<body onload="scroll()">
<div style="height: 300px;
width: min-content;
font-size: 0;
line-height: 0;
border: 1px solid gray;
overflow: scroll;">
<div style="height: 100%;
width: 100px;
border: 50px solid blue;">