mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:37:35 +00:00
LibDraw: Parse some more color string formats found on the web
This patch adds the 17 color names from CSS2.1, as well as support for the "#rgb" shorthand where each component is a hex digit that gets multiplied by 17.
This commit is contained in:
parent
66caa7af2b
commit
122d12e617
3 changed files with 53 additions and 13 deletions
|
@ -3,22 +3,22 @@
|
|||
<title>Selector test</title>
|
||||
<style>
|
||||
#foo #bar #baz {
|
||||
background-color: #00ff00;
|
||||
background-color: lime;
|
||||
}
|
||||
.abc .def div {
|
||||
background-color: #ffffff;
|
||||
background-color: white;
|
||||
border-style: solid;
|
||||
border-width: 1;
|
||||
border-color: #00ff00;
|
||||
border-color: lime;
|
||||
}
|
||||
div > .boo > .bee {
|
||||
background-color: #000000;
|
||||
color: #ff00ff;
|
||||
background-color: black;
|
||||
color: magenta;
|
||||
}
|
||||
#gen_sib ~ div,
|
||||
#adj_sib + div {
|
||||
background-color: #0000ff;
|
||||
color: #ffffff;
|
||||
background-color: blue;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue