mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
c35f47093e
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
17 lines
419 B
HTML
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;">
|