diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-12 19:58:23 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-12 19:59:24 +0100 |
commit | 2b8c7faee487bb61a4077893f959f6f2c63cdf1c (patch) | |
tree | 5aa42f9f2f96c067ce4c6754e2f674b333a5e118 /Base/res/html | |
parent | 66e9dde86f723303209bbe1d038188082262512b (diff) | |
download | serenity-2b8c7faee487bb61a4077893f959f6f2c63cdf1c.zip |
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.
Diffstat (limited to 'Base/res/html')
-rw-r--r-- | Base/res/html/misc/float-2.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Base/res/html/misc/float-2.html b/Base/res/html/misc/float-2.html new file mode 100644 index 0000000000..595c121b6e --- /dev/null +++ b/Base/res/html/misc/float-2.html @@ -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> |