F2F/Seattle 2011/Agenda/FilterEffects

From SVG
< F2F‎ | Seattle 2011‎ | Agenda
Jump to: navigation, search

Filter effects 1.0

Latest version of the spec: https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/publish/Filters.html

The specification defines two serializations, one being the svg markup syntax and the other a subset of the markup syntax with some of the most commonly used effects in CSS.

Issues to discuss

  • Naming of what was previously called SVG filters
  • Arbitrary image processing via a shading language
  • Hit-testing with filter effect
    • Hit-testing without regard to filters
      • Pros: fast
      • Cons: doesn't always match what the user sees
    • Hit-testing with the filter region
      • Pros: fast
      • Cons: doesn't always match what the user sees
    • Hit-testing with the filter output (with alpha threshold)
      • Pros: Can find the affected pixels/element precisely
      • Cons: high performance cost, possible security risk ISSUE-2071
  • Deprecating enable-background
    • Proposal: let the optional x,y,width,height values in enable-background: new [ <x> <y> <width> <height> ] be ignored by UA's. Instead the UA should find an optimal region for the element that the filter is applied to. The optional arguments are currently defined to establish a clipping rectangle of the given size, acting as a temporary canvas.
 <svg enable-background="new 0 0 1600 1200">
   <g filter="url(#effect)">
      <circle r="20" .../>
   </g>
 </svg>