- From: Stephen Chenney <schenney@chromium.org>
- Date: Tue, 24 Jun 2014 09:08:57 -0400
- To: Paul LeBeau <paul.lebeau@gmail.com>
- Cc: www-svg <www-svg@w3.org>
- Message-ID: <CAObCcUpJ4Q1mcbXuYdYWtfZ8CY8OOD2uBRe4ampVTEic-HH9rQ@mail.gmail.com>
On Tue, Jun 24, 2014 at 3:56 AM, Paul LeBeau <paul.lebeau@gmail.com> wrote: > Dirk wrote: > > In Chrome the usage of <switch> is 0.027%[1], no data for the other > attributes. > > Just curious. Does that figure exclude files in the various SVG test > suites? At a rate of 1 in every 3700 files, I could almost believe that > this is just counting test files. > > Paul > > The figure is based on actual page loads by Chrome users. I imagine test pages are inconsequential in determining the number, but we do know that it is biased away from corporate internal sites. Stephen. > > On 24 June 2014 16:31, Dirk Schulze <dschulze@adobe.com> wrote: > >> >> On Jun 24, 2014, at 5:01 AM, Robert O'Callahan <robert@ocallahan.org> >> wrote: >> >> > Are <switch>, hasExtension, systemLanguage, requiredFeatures and >> requiredExtensions worth keeping? I think this kind of feature selection is >> widely considerd an anti-pattern at this point. Have these actually been >> used in good ways? If so, I haven't seen it. >> >> <switch> and requiredFeatures have been used in the past. Mostly to check >> if filters are supported IIRC. In practice they probably return true >> already today and removing would not hurt if we would ignore <switch>. But >> SVG doesn’t “ignore” elements. An unknown element causes an error. We had >> discussions about interpreting unknown elements as <g>, personally I think >> this is a nightmare to support. The other APIs are under consideration for >> removal already. >> >> In Chrome the usage of <switch> is 0.027%[1], no data for the other >> attributes. >> >> > >> > Seems to me that getCTM, getScreenCTM and getTransformToElement should >> all be replaced by a new GeometryUtils method, say getTransform(optional >> TransformOptions options), with TransformOptions { GeometryNode to; }. >> >> The interface from CSSOM View definitely applies to SVG as well[2]. >> >> There is nothing comparable to getCTM, getScreenCTM yet. Note that Canvas >> has a currentTransform attribute that some browser vendors would like to >> replaced with a non-live getter. This could be an opportunity to unify the >> API across SVG, CSS/HTML and Canvas. However, at this point I would say >> that the support for getCTM is mandatory. A lot of content uses it today >> already. >> >> Greetings, >> Dirk >> >> [1] >> http://www.chromestatus.com/metrics/feature/popularity#SVGSwitchElement >> [2] http://dev.w3.org/csswg/cssom-view/#geometry >> > >
Received on Tuesday, 24 June 2014 13:09:25 UTC