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/variables.html | |
| parent | 59601e40572c58cbc4d4be0c300756cd863da339 (diff) | |
| download | chawan-94f2ed4c705d59787c7004138a28decd0ac6257a.tar.gz | |
cascade: fix variable inheritance
Diffstat (limited to 'test/layout/variables.html')
| -rw-r--r-- | test/layout/variables.html | 7 |
1 files changed, 6 insertions, 1 deletions
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> |