Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Deletes the keyframe rule with the given key.
![]() ![]() |
Syntax
HRESULT retVal = object.deleteRule(key);
Parameters
key [in]
Type: DOMStringThe key that describes the CSSKeyframeRule object to be deleted. The key must resolve to a number between 0 and 1, or the rule is ignored.
Return value
Type: HRESULT
This method can return one of these values.
| Return value | Description |
|---|---|
| S_OK | The operation completed successfully. |
Standards information
- CSS Animations Module Level 3, Section 5
Remarks
If a rule with the given key does not exist, the IHTMLMSCSSKeyframesRule::deleteRule method does nothing.
.png)
.png)