mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 09:05:45 +00:00
50e24a68bc
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.
11 lines
203 B
HTML
11 lines
203 B
HTML
<!DOCTYPE html>
|
|
<head>
|
|
<style>
|
|
span { position: absolute; float: left; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<span></span>
|
|
<span style="position: static; border: 1px solid green">Test<br>Test</span>
|
|
</body>
|