Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Sizing Test: stretch size with huge padding, while avoiding floats</title>
<link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
<style>
#target {
display: flow-root;
padding-right: 10000000000px;
width: stretch;
min-width: stretch;
}
</style>
<div style="display: flow-root">
<div style="margin: 0 100px">
<div style="float: left">float</div>
<div id="target">target</div>
</div>
</div>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(function() {
assert_equals(getComputedStyle(target).width, "0px", "width");
});
</script>
</body>