> What does an author mean when they specify width="70%"?
That means, (ideally) I want this block centered, with healthy (15%) margins on
each side.
> largest possible rendering container?
I'm not sure what that means, and I don't think an author would.
> even on mobile
Our attitude is that mobile might be good for reviewing for an exam while you
sit at the bus stop, but serious studying (whatever that is!) needs more real
estate. And where is the breakpoint for that: 6" phone, 12" tablet (w/ or w/o
keyboard), 15" laptop, 27" desktop, 55" gaming monitor?
If an author's source is going to be agnostic about output formats, then I don't
think it should have physical units (centimeters, inches). And pixels is
another step beyond - they are even more meaningless.
We have a 600px "design width" for text, so wrapping paragraphs works well.
Might we make that 800px someday? What happens to an author's source then?
Does an author know that their interactive "looks best" at 400px? And why is
that it looks crappy if scaled up? Is it the fault of the interactive? We will
never be able to just ingest everything (witness WeBWorK OPL problems). Should
it be on the interactive to scale gracefully from mobile to desktop? Don't we
want a low-vision reader to be able to scale up and have things look good?
Having said all that, interactives are great. And *only* in HTML, almost by
definition. They are a pale imitation in all other formats, even in EPUB
(lacking JS, typically). So I guess some notion of a width in pixels is a
property of an interactive that we might consult profitably.
You talk about scaling up being bad. What about the problem when an interactive
is so busy that it pretty much decides it owns the whole screen? Click on the
"Discrete" panel here:
Figure 15.6
https://pretextbook.org/examples/sample-article/html/section-interactive-server.html#figure-phet-fourier
You can zoom this standalone page to (say) 200% and it is better:
https://pretextbook.org/examples/sample-article/html/interactive-phet-fourier.html
would @natural-width=1800px be used in some way?
I'd entertain a PR. But let's not use @natural-width. It might make people
think graphics files have natural widths. How about @design-width. Not our
600px design width (an author may not know that), but the design width of the
#interactive. Somebody built it assuming a canvas of a certain (ideal?) size.
Consider it a hint. Most formats ignore it. Other formats and styles and
device limitations *might* consult it.
Rob
> c9b9694fbf5fn%
40googlegroups.com?utm_medium=email&utm_source=footer <https://
>
groups.google.com/d/msgid/pretext-support/baf44543-936d-49c4-a667-
> c9b9694fbf5fn%
40googlegroups.com?utm_medium=email&utm_source=footer>
>
computerscience.chemeketa.edu/people/andrew-scholer/ <http://
>
computerscience.chemeketa.edu/people/andrew-scholer/>
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to
pretext-dev...@googlegroups.com <mailto:
pretext-
>
dev+uns...@googlegroups.com>.
> To view this discussion visit
https://groups.google.com/d/msgid/pretext-dev/
> CACm44N__1f6%2Bp7FMYPV0UN-aeqjRY30ZZ5FsZGJ8kjnDuLgK8g%
40mail.gmail.com <https://
>
groups.google.com/d/msgid/pretext-dev/CACm44N__1f6%2Bp7FMYPV0UN-
> aeqjRY30ZZ5FsZGJ8kjnDuLgK8g%
40mail.gmail.com?utm_medium=email&utm_source=footer>.