findRule method
Returns the rule with a key that matches the given key.
Syntax
HRESULT retVal = object.findRule(key, ruleRule);
Parameters
key [in]
Type: DOMStringThe key that corresponds to the CSSKeyframeRule object to find. The key must resolve to a number between 0 and 1, or the rule is ignored.
ruleRule [out, retval]
Type: CSSKeyframeRuleThe found rule.
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::findRule method does nothing.