summaryrefslogtreecommitdiff
path: root/Base/res
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2021-09-16 19:40:56 +0100
committerAndreas Kling <kling@serenityos.org>2021-09-17 23:06:45 +0200
commit17bb913625b58c5375a1f74646bd77477b4c7208 (patch)
tree12ac61b784d6443e3a7522cb68bbdebe9700b1c3 /Base/res
parent86f78bff2a8d88ce5aa92f4146542cb482e8c1a5 (diff)
downloadserenity-17bb913625b58c5375a1f74646bd77477b4c7208.zip
LibWeb: Implement `currentcolor` special value
The `currentcolor` identifier represents the current value of the `color` property. This is the default value for `border-color` and `text-decoration-color`, and is generally useful to have. :^)
Diffstat (limited to 'Base/res')
-rw-r--r--Base/res/html/misc/colors.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/Base/res/html/misc/colors.html b/Base/res/html/misc/colors.html
index df0d67de1a..f236090873 100644
--- a/Base/res/html/misc/colors.html
+++ b/Base/res/html/misc/colors.html
@@ -12,6 +12,7 @@
#g { background-color: rgba(0%, 100%, 0%, 1); }
#h { background-color: hsl(120, 100%, 50%); }
#i { background-color: hsla(120, 100%, 50%, 1); }
+ #j { color: lime; background-color: currentColor; }
</style>
</head>
<body>
@@ -25,5 +26,6 @@
<div id="g">This is green, using rgba(0%, 100%, 0%, 1).</div>
<div id="h">This is green, using hsl(120, 100%, 50%).</div>
<div id="i">This is green, using hsla(120, 100%, 50%, 1).</div>
+ <div id="j"><span style="color: black;">This is green, using currentcolor.</span></div>
</body>
</html>