2012-09-30 10:42:29 +04:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
|
|
Any copyright is dedicated to the Public Domain.
|
|
|
|
http://creativecommons.org/publicdomain/zero/1.0/
|
|
|
|
-->
|
|
|
|
<!--
|
2013-03-28 10:33:20 +04:00
|
|
|
This test checks that an img element with "min-width: min-content"
|
|
|
|
and a huge specified "width" ends up being shrinkable. (In particular,
|
|
|
|
the large "width" value shouldn't influence the min-content width).
|
2012-09-30 10:42:29 +04:00
|
|
|
-->
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head>
|
|
|
|
<style>
|
|
|
|
div.flexbox {
|
|
|
|
height: 50px;
|
|
|
|
width: 50px;
|
|
|
|
border: 2px dotted black;
|
2012-10-15 23:42:43 +04:00
|
|
|
display: flex;
|
2012-09-30 10:42:29 +04:00
|
|
|
}
|
|
|
|
img {
|
|
|
|
width: 1000px;
|
|
|
|
height: 50px;
|
|
|
|
background: purple;
|
2013-03-28 10:33:20 +04:00
|
|
|
min-width: -moz-min-content;
|
2012-09-30 10:42:29 +04:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="flexbox">
|
|
|
|
<img src="solidblue.png"/>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|