mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00:00
LibWeb: Use the margin box of floating elements for flowing around
Inline content flows around the entire margin box of floating elements, not just the content box.
This commit is contained in:
parent
66e9dde86f
commit
2b8c7faee4
3 changed files with 35 additions and 2 deletions
17
Base/res/html/misc/float-2.html
Normal file
17
Base/res/html/misc/float-2.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
#b {
|
||||
border: 1px solid red;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
float: left;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id=b></div>
|
||||
<div id=a>Text</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue