diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-11-28 23:55:46 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-11-28 23:55:46 +0000 |
| commit | 6afedc208aa3dc4eb84e0cfd20e6a241d0534a3d (patch) | |
| tree | fa2987aff2a18e9823b01f33aaf66966d33ddebf /docutils/test/functional | |
| parent | 6925304d7a5cba5c6d12150180287a6a4bf3e149 (diff) | |
| download | docutils-6afedc208aa3dc4eb84e0cfd20e6a241d0534a3d.tar.gz | |
Wrap definition lists with "details" class argument in a <div>
with the "id" and "class" values of the list node.
Enables setting an "anchor" or a "class" value for "detail disclosure elments".
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9282 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/functional')
| -rw-r--r-- | docutils/test/functional/expected/standalone_rst_html5.html | 4 | ||||
| -rw-r--r-- | docutils/test/functional/input/data/html5-features.txt | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/docutils/test/functional/expected/standalone_rst_html5.html b/docutils/test/functional/expected/standalone_rst_html5.html index 0befeebec..9b03ecf30 100644 --- a/docutils/test/functional/expected/standalone_rst_html5.html +++ b/docutils/test/functional/expected/standalone_rst_html5.html @@ -1342,15 +1342,19 @@ encyclopedias etc. (as well as the LaTeX <cite>description</cite> environment).< <h4><a class="toc-backref" href="#toc-entry-47" role="doc-backlink"><span class="sectnum">3.2.2 </span>Details disclosure elements</a></h4> <p>Items of <a class="reference internal" href="#definition-lists">definition lists</a> with class argument "details" are converted to <a class="reference external" href="https://www.w3.org/TR/html52/interactive-elements.html#the-details-element">details</a> <a class="footnote-reference brackets" href="#footnote-9" id="footnote-reference-22" role="doc-noteref"><span class="fn-bracket">[</span>9<span class="fn-bracket">]</span></a> disclosure elements with the term becoming the "summary".</p> +<div class="details" id="closed-details"> <details> <summary>A summary</summary> <p>with details only visible after user interaction.</p> </details> +</div> +<div class="details open" id="open-details"> <details open="open"> <summary>Another summary</summary> <p>with open details because the source list has the additional class value "open".</p> </details> +</div> </section> <section id="field-list-variants"> <h4><a class="toc-backref" href="#toc-entry-48" role="doc-backlink"><span class="sectnum">3.2.3 </span>Field List Variants</a></h4> diff --git a/docutils/test/functional/input/data/html5-features.txt b/docutils/test/functional/input/data/html5-features.txt index d4201583b..495bf6d97 100644 --- a/docutils/test/functional/input/data/html5-features.txt +++ b/docutils/test/functional/input/data/html5-features.txt @@ -102,11 +102,13 @@ Details disclosure elements Items of `definition lists`_ with class argument "details" are converted to `details`_ disclosure elements with the term becoming the "summary". +.. _closed-details: .. class:: details A summary with details only visible after user interaction. +.. _open-details: .. class:: details open Another summary |
