W3C home > Mailing lists > Public > public-digipub-ig@w3.org > October 2016

Re: [mediaqueries] MathML

From: Robin Berjon <robin@berjon.com>
Date: Tue, 4 Oct 2016 16:25:10 -0400
To: Florian Rivoal <florian@rivoal.net>
Cc: www-style list <www-style@w3.org>, W3C Digital Publishing IG <public-digipub-ig@w3.org>, Peter Krautzberger <peter.krautzberger@mathjax.org>
Message-ID: <2ca7d1b7-2caa-8d14-fd1a-996a31c73d87@berjon.com>
On 04/10/2016 10:33 , Florian Rivoal wrote:
>> If I had a wish my preferred option would be to have the ability to mark
>> > up alternatives in HTML, a bit like <switch> but *without* the built-in
>> > behaviour:
>> > 
>> > <alternative>
>> >  <variant><math>...</math></variant>
>> >  <variant><svg>...</svg></variant>
>> >  <variant><img></variant>
>> >  <variant>some long textual description</variant>
>> > </alternative>
>> > 
>> > As an author I could specify my preferred option (perhaps just through
>> > order) but the browser could override me ("nope I don't understand that
>> > well enough", "my user actually prefers that one") and could afford
>> > users the option of switching between representations.
>> > 
>> > That would match my publishing needs far better (and as a user I would
>> > also love the option to switch to text in many cases). I do however
>> > realise that this is a much more involved change.
>
> Interesting (and completely out of scope for the CSSWG:). How would you
> deal with not showing all alternatives in UAs that are not aware of this new element,
> without asking the author to hard-code in their stylesheet or markup which variant
> should be display:none?

This is completely out of scope but if I had to actually design this
instead of wave my hands I would do so using the <template> element.

-- 
 Robin Berjon - http://berjon.com/ - @robinberjon
 http://science.ai/  intelligent science publishing

Received on Tuesday, 4 October 2016 20:25:36 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 25 April 2017 10:44:46 UTC