Implement StyleSheet.disabled.

This commit is contained in:
Cameron McCormack 2016-11-23 18:07:16 +08:00
parent 4529435f96
commit 64ff6dc103
10 changed files with 62 additions and 16 deletions

View file

@ -57,6 +57,7 @@ fn test_parse_stylesheet() {
origin: Origin::UserAgent,
media: Default::default(),
dirty_on_viewport_size_change: AtomicBool::new(false),
disabled: AtomicBool::new(false),
rules: vec![
CssRule::Namespace(Arc::new(RwLock::new(NamespaceRule {
prefix: None,

View file

@ -114,9 +114,6 @@
[StyleSheet interface: attribute media]
expected: FAIL
[StyleSheet interface: attribute disabled]
expected: FAIL
[CSSStyleSheet interface: attribute ownerRule]
expected: FAIL
@ -135,9 +132,6 @@
[StyleSheet interface: style_element.sheet must inherit property "media" with the proper type (5)]
expected: FAIL
[StyleSheet interface: style_element.sheet must inherit property "disabled" with the proper type (6)]
expected: FAIL
[StyleSheetList interface: existence and properties of interface prototype object]
expected: FAIL