- From: Chris Lilley <chris@w3.org>
- Date: Tue, 10 Sep 2013 00:01:30 +0200
- To: Robin Berjon <robin@w3.org>
- CC: "www-svg@w3.org" <www-svg@w3.org>
Hello Robin, Monday, September 9, 2013, 9:48:56 PM, you wrote: > I've therefore been wondering if there be interest in adding a @media > test attribute for <switch>. Yes, its a clear and obvious thing to do. Media queries evaluate to true or false so are a good fit for the switch construct. Just had dinner with Marcos and Youav from the responsive images group (they are meeting tomorrow at Mozilla France, where CSS WG will be meeting the next three days) and they thought it was a good idea too. > I realise that it makes it dynamic; Its already dynamic (or should be). > though > I would hope that that has relatively minimal impact on implementation > (given that the DOM is there and live anyway). A somewhat clearer > processing model for <switch> might have to be written, but it seems > manageable. > For backwards compatibility, it would currently be necessary to polyfill > @media — but that's doable. If this proves useful for responsive images > though, I have to admit that I'll it would be rather tempting to just > highjack this into HTML :) Its an obvious combination that should be documented in SVG2. Which html5 element(s) would it go on? -- Best regards, Chris mailto:chris@w3.org
Received on Monday, 9 September 2013 22:01:41 UTC