- From: Juergen Roethig <roethig@dhbw-karlsruhe.de>
- Date: Thu, 25 Sep 2014 23:15:15 +0200
- To: <www-svg@w3.org>
Chris Lilley wrote: > > Thursday, September 25, 2014, 9:04:30 PM, you wrote: > >> Robert Longson wrote: >>> javascript isn't allowed in svg-as-an-image either. You'll find all existing UAs enforce these rules. > >> So, some existing UAs do it like that (obviously even differently, some >> allow parts, some disallow all), but there is not any statement in SVG >> 1.1 (that's the very same specification you were referring to) saying >> what it must be like in that case! > > It is in a separate specification, SVG Integration. > https://svgwg.org/specs/integration/ Perfect! So, this might be a "standard" in the future. It is not relevant for SVG 1.1! And the status of that "spec" is "First Public Working Draft 17 April 2014", and there seem to be more questions than statements within, so far. I assume that it might need lots of discussions and clarifications before it becomes a "standard", i.e. a resilient spec. Btw., at the time of specification of SVG 1.1, integration of SVG files via HTML <img> tag was not an issue at all ... HTML <img> was basically restricted to rasterized images, those times ... HTML4 explicitly mentions > Examples of widely recognized image formats include GIF, JPEG, and PNG. [http://www.w3.org/TR/REC-html40/struct/objects.html#h-13.2] ... >> I tend to argue that in such a case >> the browser incompletely implements SVG 1.1. > > No, it does not. It implements other specs as well, is all. ... so the browser should not claim to completely and/or standard-conformantly implement SVG 1.1 and CSS2 within an <img> tag, i.e. it is not a "conforming SVG 1.1 viewer" in the case of inclusion via <img>. Nevertheless, it does _incompletely_ implement the combination of SVG 1.1 and CSS2 (as long as it claims to implement CSS2) within an <img> tag in HTML. See from "G.8 Conforming SVG Viewers" [http://www.w3.org/TR/SVG11/conform.html#ConformingSVGViewers]: > If the user agent supports Cascading Style Sheets, level 2 [CSS2], a Conforming SVG Viewer must support CSS styling of SVG content and must support all features from CSS2 that are described in this specification as applying to SVG (see properties shared with CSS and XSL, Styling with CSS and Facilities from CSS and XSL used by SVG). The supported features from CSS2 must be implemented in accordance with the conformance definitions from the CSS2 specification ([CSS2], section 3.2). No "allowed restrictions or limitations" mentioned ... Juergen Roethig P.S.: What was the original issue? The request for an amendment to SVG 1.1 mentioning the incomplete (with regards to external resources) implementation of SVG 1.1 when referenced via an <img> tag within HTML. "No need to do that" (not literally) was my first answer. Still no need to adjust my first answer ...
Received on Thursday, 25 September 2014 21:16:08 UTC