aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-07-26 09:15:24 -0600
committerJohn MacFarlane <[email protected]>2023-07-26 09:15:24 -0600
commitd7c43fda32b3cedc362196d0fc4d09aa4770841a (patch)
treea9796113189143c3b977e608526b6147103d6e29
parent704a07d9639e65d9efd4b9d49b3685b0e4206601 (diff)
Add clause for svg to default CSS for HTML.
Suggested at #8969.
-rw-r--r--data/templates/styles.html4
-rw-r--r--test/lhs-test.html4
-rw-r--r--test/lhs-test.html+lhs4
-rw-r--r--test/writer.html44
-rw-r--r--test/writer.html54
5 files changed, 20 insertions, 0 deletions
diff --git a/data/templates/styles.html b/data/templates/styles.html
index 49a7251fd..8dafb5ac3 100644
--- a/data/templates/styles.html
+++ b/data/templates/styles.html
@@ -62,6 +62,10 @@ a:visited {
img {
max-width: 100%;
}
+svg {
+ height; auto;
+ max-width: 100%;
+}
h1, h2, h3, h4, h5, h6 {
margin-top: 1.4em;
}
diff --git a/test/lhs-test.html b/test/lhs-test.html
index 4d3a0dd65..e8950c888 100644
--- a/test/lhs-test.html
+++ b/test/lhs-test.html
@@ -60,6 +60,10 @@
img {
max-width: 100%;
}
+ svg {
+ height; auto;
+ max-width: 100%;
+ }
h1, h2, h3, h4, h5, h6 {
margin-top: 1.4em;
}
diff --git a/test/lhs-test.html+lhs b/test/lhs-test.html+lhs
index 11ae6a3b7..43c66689b 100644
--- a/test/lhs-test.html+lhs
+++ b/test/lhs-test.html+lhs
@@ -60,6 +60,10 @@
img {
max-width: 100%;
}
+ svg {
+ height; auto;
+ max-width: 100%;
+ }
h1, h2, h3, h4, h5, h6 {
margin-top: 1.4em;
}
diff --git a/test/writer.html4 b/test/writer.html4
index 81894b3da..2fb59584e 100644
--- a/test/writer.html4
+++ b/test/writer.html4
@@ -63,6 +63,10 @@
img {
max-width: 100%;
}
+ svg {
+ height; auto;
+ max-width: 100%;
+ }
h1, h2, h3, h4, h5, h6 {
margin-top: 1.4em;
}
diff --git a/test/writer.html5 b/test/writer.html5
index d2adb0cdb..dc8c27920 100644
--- a/test/writer.html5
+++ b/test/writer.html5
@@ -63,6 +63,10 @@
img {
max-width: 100%;
}
+ svg {
+ height; auto;
+ max-width: 100%;
+ }
h1, h2, h3, h4, h5, h6 {
margin-top: 1.4em;
}