mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
Per CSS2 section 9.7, if position has the value absolute or fixed, the computed value of float is none. We were already blockifying the display for such elements, but not resetting the computed value of float. This made the wrong value observable via getComputedStyle().
16 lines
376 B
HTML
16 lines
376 B
HTML
<!DOCTYPE html>
|
|
<script src="include.js"></script>
|
|
<style>
|
|
.box { float: left; position: absolute; }
|
|
</style>
|
|
<div class="box" id="test">test</div>
|
|
<script>
|
|
asyncTest(async (done) => {
|
|
let box = document.getElementById('test');
|
|
let cs = getComputedStyle(box);
|
|
println(`float: ${cs.float}`);
|
|
println(`position: ${cs.position}`);
|
|
done();
|
|
});
|
|
</script>
|