mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Implement CSSStyleSheet::replaceSync (#36586)
Implements the `replaceSync` method on CSSStyleSheet Testing: Covered by wpt tests. Expectations are updated. Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
parent
5d3cbc67ee
commit
30fdf48ca6
12 changed files with 47 additions and 162 deletions
|
@ -59,6 +59,8 @@ pub enum Error {
|
|||
Data,
|
||||
/// OperationError DOMException
|
||||
Operation,
|
||||
/// NotAllowedError DOMException
|
||||
NotAllowed,
|
||||
|
||||
/// TypeError JavaScript Error
|
||||
Type(String),
|
||||
|
|
|
@ -11,6 +11,7 @@ interface CSSStyleSheet : StyleSheet {
|
|||
[Throws, SameObject] readonly attribute CSSRuleList cssRules;
|
||||
[Throws] unsigned long insertRule(DOMString rule, optional unsigned long index = 0);
|
||||
[Throws] undefined deleteRule(unsigned long index);
|
||||
[Throws] undefined replaceSync(USVString text);
|
||||
};
|
||||
|
||||
dictionary CSSStyleSheetInit {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue