SVG参考手册
分类 | Elements
discard
<discard>
SVG元素允许作者指定在该特定元素将被丢弃,从而降低了由SVG用户代理所需的资源的时间。这对于帮助SVG查看者在显示长时间运行的文档时节省内存特别有用。
<discard> 可能发生在 <animate> 可能的任何位置。
用法上下文
分类 |
动画元素 |
---|---|
允许的内容 |
以任何顺序包含以下任意数量的元素:描述性元素<script> |
属性
全局属性
- Conditional processing attributes
- Core attributes
- Aria attributes
具体属性
begin
href
产品规格
Specification |
Status |
Comment |
---|---|---|
SVG Animations Level 2The definition of '<discard>' in that specification. |
Editor's Draft |
Initial definition |
浏览器兼容性
Feature |
Chrome |
Firefox (Gecko) |
Internet Explorer |
Opera |
Safari |
---|---|---|---|---|---|
Basic support |
(Yes) |
No support1 |
No support |
(Yes) |
? |
Feature |
Android |
Firefox Mobile (Gecko) |
IE Phone |
Opera Mobile |
Safari Mobile |
---|---|---|---|---|---|
Basic support |
? |
No support1 |
? |
? |
? |