1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:37:35 +00:00

LibWeb: Implement vendor specific CSS color style for System Palette

Add "-libweb-palette-foo-bar" CSS color properties to allow CSS to
style itself using the currently selected System Theme.
This commit is contained in:
FalseHonesty 2020-05-25 14:54:27 -04:00 committed by Andreas Kling
parent 6a74af8063
commit b352a6b59d
5 changed files with 406 additions and 1 deletions

View file

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>System palette css test</title>
</head>
<body>
<p style="color: -libweb-palette-syntax-identifier">All of my text should be the identifier color</p>
</body>
</html>

View file

@ -28,6 +28,7 @@ span#ua {
<p>Your user agent is: <b><span id="ua"></span></b></p>
<p>Some small test pages:</p>
<ul>
<li><a href="palette.html">system palette color css extension</a></li>
<li><a href="inline-block-link.html">link inside display: inline-block</a></li>
<li><a href="set-interval.html">setInterval() test</a></li>
<li><a href="html-escape-test.html">html character escape test</a></li>