mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:17:44 +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:
parent
6a74af8063
commit
b352a6b59d
5 changed files with 406 additions and 1 deletions
9
Base/home/anon/www/palette.html
Normal file
9
Base/home/anon/www/palette.html
Normal 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>
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue