gecko-dev/layout/reftests/bugs/608756-1b.html
Boris Zbarsky 50e24a68bc Bug 608756. Cache display structs in the ruletree even for floated and positioned elements. r=dbaron
The basic idea is that mOriginalDisplay and mOriginalFloats are kept synchronized with mDisplay and mFloats unless the latter are changed due to position:absolute/fixed (for both) or float:left/right (for display).  When initializing an nsStyleDisplay from a start struct, we restore the values from mOriginalDisplay/Floats to get correct behavior.
2011-10-29 03:04:20 -04:00

11 lines
179 B
HTML

<!DOCTYPE html>
<head>
<style>
span { float: left; }
</style>
</head>
<body>
<span></span>
<span style="float: none; border: 1px solid green;">Test<br>Test</span>
</body>