summaryrefslogtreecommitdiffstatshomepage
path: root/test/no-indicator-css.html
diff options
context:
space:
mode:
authorcarson <carson@leaddyno.com>2020-05-16 14:30:25 -0700
committercarson <carson@leaddyno.com>2020-05-16 14:30:25 -0700
commit6e06c0df877d0f4792b110e26e961d4cfd2fd96d (patch)
tree95007106660ff6fd529b06dc2ec4af5e0215139e /test/no-indicator-css.html
parentd4b4d462ab577a8e481e07e540bb3bc4343476c6 (diff)
downloadhtmx-6e06c0df877d0f4792b110e26e961d4cfd2fd96d.tar.gz
htmx-6e06c0df877d0f4792b110e26e961d4cfd2fd96d.zip
Better style handling:
* inject the style as a stand alone element * support the meta directive to not include the default style fixes https://github.com/bigskysoftware/kutty/issues/13
Diffstat (limited to 'test/no-indicator-css.html')
-rw-r--r--test/no-indicator-css.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/no-indicator-css.html b/test/no-indicator-css.html
new file mode 100644
index 00000000..04f820a3
--- /dev/null
+++ b/test/no-indicator-css.html
@@ -0,0 +1,16 @@
+<html lang="en">
+<head>
+ <meta charset="utf-8" />
+ <meta name="kutty-config" content='{"includeIndicatorStyles":false}'>
+ <title>Test if the includeIndicatorStyles meta option works</title>
+ <script src="../src/kutty.js"></script>
+</head>
+<body>
+ <h1>You should see bars here:</h1>
+ <p>
+ We are overriding the normal CSS inclusion with the meta directive <code>{"includeIndicatorStyles":false}</code>
+ so you should see the indicator because it is not being hidden by the default classes.
+ </p>
+ <img class="kutty-indicator" src="img/bars.svg" width="200">
+</body>
+</html>