From d8b162c12527422e33fdc3e21b34c2d6c69fc2b7 Mon Sep 17 00:00:00 2001 From: milde Date: Tue, 9 Mar 2021 12:53:57 +0000 Subject: HTML5 writer: Add a `viewport` meta tag to fix rendering in mobile browsers. The default behaviour of many mobile browsers is to render for a virtual viewport size and scale. This breaks CSS styling with the default stylesheets. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8632 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- .../test/functional/expected/embed_images_html5.html | 1 + docutils/test/functional/expected/footnotes_html5.html | 1 + .../test/functional/expected/math_output_mathml.xhtml | 1 + .../test/functional/expected/standalone_rst_html5.html | 15 ++++++--------- docutils/test/functional/input/data/html5-features.txt | 18 ++++++------------ 5 files changed, 15 insertions(+), 21 deletions(-) (limited to 'docutils/test/functional') diff --git a/docutils/test/functional/expected/embed_images_html5.html b/docutils/test/functional/expected/embed_images_html5.html index d211de431..c949a9e88 100644 --- a/docutils/test/functional/expected/embed_images_html5.html +++ b/docutils/test/functional/expected/embed_images_html5.html @@ -2,6 +2,7 @@ + Embedded Images diff --git a/docutils/test/functional/expected/footnotes_html5.html b/docutils/test/functional/expected/footnotes_html5.html index a4fc70fe5..2370985bf 100644 --- a/docutils/test/functional/expected/footnotes_html5.html +++ b/docutils/test/functional/expected/footnotes_html5.html @@ -2,6 +2,7 @@ + Test footnote and citation rendering diff --git a/docutils/test/functional/expected/math_output_mathml.xhtml b/docutils/test/functional/expected/math_output_mathml.xhtml index 2714ff464..bdc05fe6c 100644 --- a/docutils/test/functional/expected/math_output_mathml.xhtml +++ b/docutils/test/functional/expected/math_output_mathml.xhtml @@ -2,6 +2,7 @@ + Mathematics diff --git a/docutils/test/functional/expected/standalone_rst_html5.html b/docutils/test/functional/expected/standalone_rst_html5.html index c0da96d80..bc864690f 100644 --- a/docutils/test/functional/expected/standalone_rst_html5.html +++ b/docutils/test/functional/expected/standalone_rst_html5.html @@ -2,6 +2,7 @@ + reStructuredText Test Document @@ -12,7 +13,6 @@ - @@ -1256,18 +1256,14 @@ crunchy, now would it?

3 Changes to the html4css1 Writer

3.1 Field List Rendering

diff --git a/docutils/test/functional/input/data/html5-features.txt b/docutils/test/functional/input/data/html5-features.txt index 8f6475b08..b51f7f5d0 100644 --- a/docutils/test/functional/input/data/html5-features.txt +++ b/docutils/test/functional/input/data/html5-features.txt @@ -1,26 +1,19 @@ Changes to the `html4css1` Writer ================================= -* Use only meta keywords recognized by HTML 5. +* Use only meta_ keywords recognized by HTML 5. Add HTML5-compatible meta tags for docinfo items "authors", "date", and "copyright". - .. hint:: - - Use a `viewport meta tag`__ to tell mobile browsers - to use the device-width as viewport. + Add a `viewport meta tag`__ to tell mobile browsers + to use the device-width as viewport. - .. meta:: - :viewport: width=device-width, initial-scale=1 - - __ https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag + __ https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag * Set table column widths with , not "width" argument. * Horizontal alignment of table heads with CSS. -* Field lists as styled definition lists. - * Do not drop paragraph objects, use CSS rules to prevent unwanted vertical space. @@ -35,11 +28,12 @@ Changes to the `html4css1` Writer __ https://stackoverflow.com/questions/39547412/same-font-size-for-h1-and-h2-in-article -* Use HTML text-level tags , , , , , , , +* Use HTML5 tags , , , , , , , , , , , and if a matching class value is found in `inline` and `literal` elements. Use and if a matching class value is found in `inline`, `literal`, or `container` elements. + (See `text-level semantics`_ and `indicating edits`_.) Field List Rendering -------------------- -- cgit v1.2.1