diff options
| author | bptato <nincsnevem662@gmail.com> | 2025-01-28 19:36:15 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2025-01-28 19:36:15 +0100 |
| commit | 94f2ed4c705d59787c7004138a28decd0ac6257a (patch) | |
| tree | bebdc60db1e411aae47aa20aafb3f27f5470dba9 /test/layout | |
| parent | 59601e40572c58cbc4d4be0c300756cd863da339 (diff) | |
| download | chawan-94f2ed4c705d59787c7004138a28decd0ac6257a.tar.gz | |
cascade: fix variable inheritance
Diffstat (limited to 'test/layout')
| -rw-r--r-- | test/layout/variables.color.expected | 3 | ||||
| -rw-r--r-- | test/layout/variables.html | 7 |
2 files changed, 8 insertions, 2 deletions
diff --git a/test/layout/variables.color.expected b/test/layout/variables.color.expected index 97914b94..337c2e09 100644 --- a/test/layout/variables.color.expected +++ b/test/layout/variables.color.expected @@ -1,2 +1,3 @@ [38;2;255;255;255m[48;2;128;0;128mpurple[39m [49m -[38;2;255;40;40mtest[39m +[38;2;255;40;40mtest[39m +[38;2;255;224;234m[48;2;128;128;128mtest2[39m [49m diff --git a/test/layout/variables.html b/test/layout/variables.html index 330659a9..4cacb098 100644 --- a/test/layout/variables.html +++ b/test/layout/variables.html @@ -12,9 +12,14 @@ div { color: white; --pink: yellow !important; background-color: var(--purple) } color: var(--test3); background-color: var(--test5); } -</style> +:root { --pink: pink } +a { --pink0: var(--pink); --gray: gray } +#test2 { color: var(--pink0); --pink: yellow !important; background-color: var(--gray) } </style> <a> <div>purple</div> </a> <span id=test>test</span> +<a> +<div id=test2>test2</div> +</a> |