Re: [svgwg] Discard "discard" elements (#717)

The Chromium usecounter data has come in (see: https://crbug.com/984947#c7) and there are basically no instances of the `<discard>` element firing.

There is a declarative version of this: the `href` attribute of `<use>` can be animated in and out to instantiate and remove an element at specific times. Here is an example:
```
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400">
  <defs>
    <rect id="rect" x="10" y="10" width="100" height="100" fill="blue">
      <animate attributeName="x" to="200" begin="0s" dur="10s" fill="freeze" />
    </rect>
  </defs>
  <use href="#rect" />
  <use href="nothing" y="150">
    <animate attributeName="href" to="#rect" begin="1s" dur="4s" />
  </use>
</svg>
```

-- 
GitHub Notification of comment by progers
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/717#issuecomment-551139605 using your GitHub account

Received on Thursday, 7 November 2019 15:52:24 UTC