aboutsummaryrefslogtreecommitdiff
path: root/tests/fixtures/todo-app/index.html
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-08-13 18:46:16 +0530
committerAkshay Nair <phenax5@gmail.com>2023-08-13 18:56:10 +0530
commit78550c0d1c7037b17bdaa9413351b759b20772c0 (patch)
tree2fbef895d94698ec3ec20fe961493748c1a6f1c0 /tests/fixtures/todo-app/index.html
parent2f3de513168ac8a912e4b6540907492437a5f834 (diff)
downloadcss-everything-78550c0d1c7037b17bdaa9413351b759b20772c0.tar.gz
css-everything-78550c0d1c7037b17bdaa9413351b759b20772c0.zip
feat: adds conditionals
Diffstat (limited to 'tests/fixtures/todo-app/index.html')
-rw-r--r--tests/fixtures/todo-app/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fixtures/todo-app/index.html b/tests/fixtures/todo-app/index.html
index bbf0963..4dea1b4 100644
--- a/tests/fixtures/todo-app/index.html
+++ b/tests/fixtures/todo-app/index.html
@@ -31,10 +31,10 @@
[data-instance='task-item'] {
--text: default text;
- --checked: '0';
+ --checked: false;
--cssx-on-mount: set-attr('data-testid', attr(id));
- --cssx-on-click: update(--checked, '1');
+ --cssx-on-click: update(--checked, if(var(--checked), false, true));
}
[data-instance='task-item']::after {
content: var(--text);