summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2018-10-19 16:28:39 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2018-10-19 16:28:39 -0400
commitabd0bdd9518b8ed9e9b0ad0a0c1059760b0ec5ce (patch)
tree136495948ad933f9b62981c81a3ca43588179fe6 /tests
parent1a4a8b5ab8eb499ee2217c966f7fbb7716adf9e9 (diff)
Automatic merging of style/dynStyle and class/dynClass (closes #64)
Diffstat (limited to 'tests')
-rw-r--r--tests/classAndDynClass.ur9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/classAndDynClass.ur b/tests/classAndDynClass.ur
new file mode 100644
index 00000000..ba01962d
--- /dev/null
+++ b/tests/classAndDynClass.ur
@@ -0,0 +1,9 @@
+style style1
+style style2
+
+fun main () : transaction page = return <xml><body>
+ <div class="style1" dynClass={return (CLASS "style2")}>Text</div>
+ <div dynClass={return (CLASS "style2")}>Text</div>
+ <div style="font-weight: bold" dynStyle={return (STYLE "font-variant: small-caps")}>Text</div>
+ <div dynStyle={return (STYLE "font-variant: small-caps")}>Text</div>
+</body></xml>