summaryrefslogtreecommitdiff
path: root/Base/res/html
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-12-12 19:58:23 +0100
committerAndreas Kling <kling@serenityos.org>2020-12-12 19:59:24 +0100
commit2b8c7faee487bb61a4077893f959f6f2c63cdf1c (patch)
tree5aa42f9f2f96c067ce4c6754e2f674b333a5e118 /Base/res/html
parent66e9dde86f723303209bbe1d038188082262512b (diff)
downloadserenity-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.html17
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>