W3C home > Mailing lists > Public > www-style@w3.org > November 2019

[css3-variables] Variables assignment not updated

From: Nicolas Pillon <pillon.n@gmail.com>
Date: Tue, 12 Nov 2019 18:26:12 +0100
Message-ID: <CAC_6yGWX4e3wxgQv5F0cfHaiMyj-vreeMX4_nwPsa7xMSyy9TA@mail.gmail.com>
To: www-style@w3.org
Cc: fandeboulou@free.fr
*Hello,*

*When assigning these variables in a first file:*


*:root {*

*    --var-1: blue;*


*    --var-2: var(--var-1); *

*}*


*"--var-2" is not updated when "--var-1" is overridden in a second file.*


*:root {*

*    --var-1: orange;*

*    background-color: var(--var-2); // Background is still blue*

*}*


*It would be nice to have a feature like JavaScript proxy.*


*Regards,*

*Nicolas*
Received on Tuesday, 12 November 2019 18:39:55 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 12 November 2019 18:39:56 UTC