mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 11:45:37 +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
15 lines
302 B
HTML
15 lines
302 B
HTML
<!DOCTYPE HTML>
|
|
<style>
|
|
@font-face { font-family: Ahem; src: url(../fonts/Ahem.ttf); }
|
|
html, body { margin: 0; padding: 0; }
|
|
body { width: 450px }
|
|
p {
|
|
margin: 0;
|
|
background: yellow;
|
|
color: blue;
|
|
width: min-content; /* computes to 60px */
|
|
font: 12px Ahem;
|
|
}
|
|
</style>
|
|
<p>This is some text.</p>
|