Jelajahi Sumber

LibWeb: Use list-style-type circle/square for nested unordered lists

An idea shamelessly stolen from other UAs :^)
Linus Groh 4 tahun lalu
induk
melakukan
67b47013d2
1 mengubah file dengan 15 tambahan dan 0 penghapusan
  1. 15 0
      Userland/Libraries/LibWeb/CSS/Default.css

+ 15 - 0
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;