blob: 626277b23f3f8e9c0f87303384b32ba8af900e39 [file] [log] [blame]
<!DOCTYPE html>
<!--
| When the rules in the spec are implemented, the div should correctly
| shrink-to-fit. This test currently cannot pass because the following rule
| is not implemented:
| https://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
| 1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is
| shrink-to-fit. Then solve for 'left'
-->
<html>
<head>
<title></title>
<style>
.duration {
position: absolute;
background-color: rgba(0, 0, 0, 0.5);
text-align: center;
}
</style>
</head>
<body>
<div>
<div class="duration">10:42</div>
</div>
</body>
</html>