File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ import js .Browser .* ;
2+ import coconut .vdom .Renderer .* ;
3+
4+ @:asserts
5+ class Issue44 {
6+ public static var clicks = 0 ;
7+ public static var computations = 0 ;
8+ public function new () {}
9+ public function run () {
10+ var root = document .createElement (" div" );
11+ document .body .appendChild (root );
12+
13+ var child = root ;
14+
15+ try mount (root , hxx (' <div ref={v -> child = v} style= ${{ " --foo" : 123 }}/>' ))
16+ catch (_ ) {};
17+
18+ asserts .assert (child .style .getPropertyValue (' --foo' ) == " 123" );
19+ return asserts .done ();
20+ }
21+ }
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ class RunTests {
1616 new RunTests (),
1717 new Issue32 (),
1818 new Issue37 (),
19+ new Issue44 (),
1920 ])).handle (Runner .exit );
2021 }
2122
You can’t perform that action at this time.
0 commit comments