mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +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
21 lines
1018 B
HTML
21 lines
1018 B
HTML
<!DOCTYPE HTML>
|
|
<html class="reftest-paged">
|
|
<!--
|
|
This reference matches our current rendering, which isn't necessarily
|
|
correct, but I'd at least like to know about it if it changes, given how
|
|
little test coverage of this we currently have.
|
|
-->
|
|
<style>
|
|
html, body { margin: 0; padding: 0; }
|
|
</style>
|
|
<div id="page1" style="border: 2px solid black; background: yellow; height: 2in; box-sizing: border-box; padding: 3px; width: min-content">
|
|
<div style="background: orange; height: calc(2in - 16px); padding: 3px;">
|
|
<div style="background: brown; color: black;padding: 1px;">A</div>
|
|
</div>
|
|
</div>
|
|
<div id="page2" style="border: 2px solid black; background: yellow; height: 2in; box-sizing: border-box; padding: 3px; border-bottom: none; padding-bottom: 0; width: min-content">
|
|
<div style="background: orange; height: calc(2in - 8px); padding: 3px 3px 0 3px">
|
|
<div style="border: 1px solid fuchsia; background: aqua; height: calc(2in - 9px); border-bottom: none; color: transparent">A</div>
|
|
</div>
|
|
</div>
|