blob: f974e86697fd0b58f5bc9e86f5b1f97663bb3fbd [file] [log] [blame]
<!DOCTYPE html>
<style>
#border-box {
background-color: #369;
box-sizing: border-box;
max-width: 300px;
padding: 0 5%;
}
</style>
<div id="container" style="width: 400px">
<div id="border-box">
<p id="test" data-expected-client-width="220">Even though the width of 'border-box' stays the same after it reaches 300px, the width available to its children decreases as its padding continues to expand. This tests that we continue to layout the contents of border-box even when its own width remains the same.</p>
</div>
</div>
<script src="../../resources/check-layout.js"></script>
<script>
document.body.offsetLeft;
document.getElementById("container").style.width = "800px";
checkLayout("#test");
</script>