diff options
| author | Craig Jennings <c@cjennings.net> | 2026-10-19 15:01:56 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-10-19 15:01:56 -0500 |
| commit | ec4638af410e0aa6c91880e0f61c835c53e633e7 (patch) | |
| tree | 092b919aadc7392407f245a483a616576a22e2b3 /tests/test-org-reveal-config-sizing.el | |
| parent | 1197d5ed95e244e88dfa4cd6f15f662707707147 (diff) | |
| download | dotemacs-main.tar.gz dotemacs-main.zip | |
reveal.js centers every slide, which reads fine for a title and badly for paragraphs and lists. I left-aligned section content in the head preamble and kept the title slide and standalone images centered, where centering still reads right.
Diffstat (limited to 'tests/test-org-reveal-config-sizing.el')
| -rw-r--r-- | tests/test-org-reveal-config-sizing.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test-org-reveal-config-sizing.el b/tests/test-org-reveal-config-sizing.el index ea27b718..19e4e173 100644 --- a/tests/test-org-reveal-config-sizing.el +++ b/tests/test-org-reveal-config-sizing.el @@ -70,6 +70,13 @@ "Normal: the rule that stops the theme upper-casing headings survives the rewrite." (should (string-match-p "text-transform: *none" (cj/--reveal-head-preamble)))) +(ert-deftest test-org-reveal-config-head-preamble-normal-left-aligns-slide-content () + "Normal: slide text is left-aligned by default; the title slide and standalone images keep reveal's centering." + (let ((css (cj/--reveal-head-preamble))) + (should (string-match-p "\\.reveal \\.slides section {[^}]*text-align: *left" css)) + (should (string-match-p "#sec-title-slide {[^}]*text-align: *center" css)) + (should (string-match-p "section \\.figure {[^}]*text-align: *center" css)))) + (ert-deftest test-org-reveal-config-head-preamble-boundary-one-style-element () "Boundary: exactly one <style> element, opened and closed." (let ((css (cj/--reveal-head-preamble))) |
