From 05b1ecf1b151889ea44796eb45bfef25714a4973 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 25 Nov 2019 13:17:14 +0100 Subject: [PATCH] LibHTML: Draw each CSS border edge separately with their own style The borders still look very wrong with any border-width other than 1, but at least we can see that they have the right color, and end up in mostly the right place :^) --- Base/home/anon/www/borders.html | 27 ++++++ Base/home/anon/www/welcome.html | 1 + Libraries/LibHTML/Layout/LayoutBox.cpp | 122 ++++++++++++++++--------- Libraries/LibHTML/Layout/LayoutBox.h | 8 ++ 4 files changed, 114 insertions(+), 44 deletions(-) create mode 100644 Base/home/anon/www/borders.html diff --git a/Base/home/anon/www/borders.html b/Base/home/anon/www/borders.html new file mode 100644 index 0000000000..b7de94b89b --- /dev/null +++ b/Base/home/anon/www/borders.html @@ -0,0 +1,27 @@ + + + +CSS borders lookin' good + + + +
One day at a time!
+ + diff --git a/Base/home/anon/www/welcome.html b/Base/home/anon/www/welcome.html index dd95f34c96..27a1e36cff 100644 --- a/Base/home/anon/www/welcome.html +++ b/Base/home/anon/www/welcome.html @@ -24,6 +24,7 @@ h1 {

Some small test pages: