Mike,
On 16-May-25 10:36, StJohns, Michael wrote:
AFAICT, the scaling of the SVG is based on the rendered width of the page.  And 
that appears fixed even when you yank your browser wide.

That depends. Most SVG drawing software inserts something like this in the 
<svg/> element:

   width="180mm" height="120mm" viewBox="0 0 210 140"

That creates a fixed-width unscalable diagram

Simply remove the width and height elements, but leave the viewbox as is, and 
the diagram will scale when you resize the browser window (up to screen width, 
and down to a minimum).

For an example, see the Appendix of RFC 8989. I could send you a patched 
version of rfc9633.html where Figure 2 scales but Figure 1 doesn't.

As far as I'm concerned, those width and height elements are preventable damage.

   Brian

Acrobat generally gives you a lot of options on how to fit your page to a 
screen.  I don’t know enough about HTML and style sheets to know whether 
something like that could be folded into the HTML version of an RFC.

Mike

On Thu, May 15, 2025 at 17:56 Martin Thomson <[email protected] 
<mailto:[email protected]>> wrote:

    On Fri, May 16, 2025, at 07:39, Brian E Carpenter wrote:
     >> /doc/html/...
     >>
     >> has an _option_ you control with settings to either show you the
     >> htmlized text, or, if the v3 html is available, show you _that_ with a
     >> different style sheet that makes it look (mostly) like the htmlized
     >> text. SVG is an exception - if you select to look at the htmlized text
     >> instead of the restyled html, you aren't going to see the SVG.
     >
     > I had no idea that option existed. (And I can't imagine any circumstances
     > in which I'd use it.)

    I do agree that HTML is superior, when we have it.

    I've been considering adding an option to that, whereby the HTML on the left is not rendered in 
"pseudo-text" (that "quaintness" is my work, but if you want someone to blame, 
Lars put it there) but is rendered in more typical HTML. Would you use that option?

    _______________________________________________
    rfc-interest mailing list -- [email protected] 
<mailto:[email protected]>
    To unsubscribe send an email to [email protected] 
<mailto:[email protected]>

_______________________________________________
rfc-interest mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to