From 67b47013d27a1ff78ea700890f69e6a430538af0 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 8 May 2021 10:47:10 +0100 Subject: [PATCH] LibWeb: Use list-style-type circle/square for nested unordered lists An idea shamelessly stolen from other UAs :^) --- Userland/Libraries/LibWeb/CSS/Default.css | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Userland/Libraries/LibWeb/CSS/Default.css b/Userland/Libraries/LibWeb/CSS/Default.css index 2a39d42857..e33642ac7a 100644 --- a/Userland/Libraries/LibWeb/CSS/Default.css +++ b/Userland/Libraries/LibWeb/CSS/Default.css @@ -207,6 +207,21 @@ ol { list-style-type: decimal; } +/* FIXME: Implement these using :is() :^) */ +/* :is(ul, ol) ul */ +ul ul, +ol ul { + list-style-type: circle; +} + +/* :is(ul, ol) :is(ul, ol) ul */ +ul ul ul, +ol ul ul, +ul ol ul, +ol ol ul { + list-style-type: square; +} + /* FIXME: This is a temporary hack until we can render a native-looking frame for these. */ input[type=text] { border: 1px solid black;