瀏覽代碼

LibWeb: Add explicit color to mark element

Lady Gegga 3 年之前
父節點
當前提交
2a898a7e4a
共有 1 個文件被更改,包括 13 次插入9 次删除
  1. 13 9
      Userland/Libraries/LibWeb/CSS/Default.css

+ 13 - 9
Userland/Libraries/LibWeb/CSS/Default.css

@@ -200,15 +200,6 @@ blockquote {
     margin-right: 25px;
 }
 
-mark {
-    background: yellow;
-}
-
-abbr[title],
-acronym[title] {
-    text-decoration: dotted underline;
-}
-
 ul,
 ol {
     padding-left: 20px;
@@ -298,6 +289,19 @@ input[type=hidden i] { display: none !important; }
   noscript { display: none !important; }
 }
 
+/* 15.3.4 Phrasing content
+ * https://html.spec.whatwg.org/multipage/rendering.html#phrasing-content-3
+ */
+abbr[title],
+acronym[title] {
+    text-decoration: dotted underline;
+}
+
+mark {
+    background: yellow;
+    color: black;
+}
+
 /* 15.4.1 Embedded content
  * https://html.spec.whatwg.org/multipage/rendering.html#embedded-content-rendering-rules
  */