mirror of
https://github.com/RGBCube/serenity
synced 2025-07-19 02:17:35 +00:00

We now keep the color value as a StyleValue up until we go to paint the gradient, which makes `currentColor` work, along with any other color values that can't be immediately converted into a `Gfx::Color` while parsing.
11 lines
185 B
HTML
11 lines
185 B
HTML
<html>
|
|
<style>
|
|
div {
|
|
color: green;
|
|
width: 200px;
|
|
height: 200px;
|
|
background: linear-gradient(currentColor, white);
|
|
}
|
|
</style>
|
|
<div></div>
|
|
</html>
|