Auto merge of #10292 - jdm:cssom, r=jdm

Initial steps for CSSOM

Squashed and rebased #10133.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10292)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-04-01 04:29:08 +05:30
commit f335586ff5
15 changed files with 159 additions and 77 deletions

View file

@ -1,8 +1,5 @@
[interfaces.htm]
type: testharness
[Document interface: attribute styleSheets]
expected: FAIL
[Document interface: attribute selectedStyleSheetSet]
expected: FAIL
@ -18,9 +15,6 @@
[Document interface: operation enableStyleSheetsForSet(DOMString)]
expected: FAIL
[Document interface: document must inherit property "styleSheets" with the proper type (0)]
expected: FAIL
[Document interface: document must inherit property "selectedStyleSheetSet" with the proper type (1)]
expected: FAIL
@ -39,9 +33,6 @@
[Document interface: calling enableStyleSheetsForSet(DOMString) on document with too few arguments must throw TypeError]
expected: FAIL
[Document interface: new Document() must inherit property "styleSheets" with the proper type (0)]
expected: FAIL
[Document interface: new Document() must inherit property "selectedStyleSheetSet" with the proper type (1)]
expected: FAIL
@ -114,33 +105,15 @@
[MediaList interface: operation deleteMedium(DOMString)]
expected: FAIL
[StyleSheet interface: existence and properties of interface object]
expected: FAIL
[StyleSheet interface object length]
expected: FAIL
[StyleSheet interface: existence and properties of interface prototype object]
expected: FAIL
[StyleSheet interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[StyleSheet interface: attribute type]
expected: FAIL
[StyleSheet interface: attribute href]
expected: FAIL
[StyleSheet interface: attribute ownerNode]
expected: FAIL
[StyleSheet interface: attribute parentStyleSheet]
expected: FAIL
[StyleSheet interface: attribute title]
expected: FAIL
[StyleSheet interface: attribute media]
expected: FAIL
@ -216,39 +189,9 @@
[StyleSheet interface: style_element.sheet must inherit property "disabled" with the proper type (6)]
expected: FAIL
[StyleSheetList interface: existence and properties of interface object]
expected: FAIL
[StyleSheetList interface object length]
expected: FAIL
[StyleSheetList interface: existence and properties of interface prototype object]
expected: FAIL
[StyleSheetList interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[StyleSheetList interface: operation item(unsigned long)]
expected: FAIL
[StyleSheetList interface: attribute length]
expected: FAIL
[StyleSheetList must be primary interface of document.styleSheets]
expected: FAIL
[Stringification of document.styleSheets]
expected: FAIL
[StyleSheetList interface: document.styleSheets must inherit property "item" with the proper type (0)]
expected: FAIL
[StyleSheetList interface: calling item(unsigned long) on document.styleSheets with too few arguments must throw TypeError]
expected: FAIL
[StyleSheetList interface: document.styleSheets must inherit property "length" with the proper type (1)]
expected: FAIL
[CSSRuleList interface: existence and properties of interface object]
expected: FAIL

View file

@ -1,11 +1,4 @@
[ttwf-cssom-doc-ext-load-count.htm]
type: testharness
[stylesheet.css should be loaded and styleSheets.length === 1]
expected: FAIL
[stylesheet.css should be unloaded and styleSheets.length === 0]
expected: FAIL
[stylesheet-1.css should be loaded and styleSheets.length === 1]
expected: FAIL

View file

@ -1,8 +1,5 @@
[ttwf-cssom-doc-ext-load-tree-order.htm]
type: testharness
[styleSheets.length must be 5]
expected: FAIL
[styleSheets item 0 title must be aaa]
expected: FAIL

View file

@ -1,5 +1,3 @@
[ttwf-cssom-document-extension.htm]
type: testharness
[CSSOM - Extensions to the Document Interface: StyleSheetList length is 0 when no sheets loaded]
expected: FAIL

View file

@ -29,7 +29,3 @@
[lastModified set according to HTTP header]
expected: FAIL
[styleSheets]
expected: FAIL

View file

@ -8036,7 +8036,7 @@
[Document interface: iframe.contentDocument must inherit property "createTreeWalker" with the proper type (27)]
expected: FAIL
[Document interface: iframe.contentDocument must inherit property "styleSheets" with the proper type (28)]
expected: FAIL
@ -8415,9 +8415,6 @@
[Document interface: iframe.contentDocument must inherit property "onwaiting" with the proper type (156)]
expected: FAIL
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "styleSheets" with the proper type (28)]
expected: FAIL
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "selectedStyleSheetSet" with the proper type (29)]
expected: FAIL

View file

@ -208,6 +208,8 @@ var interfaceNamesInGlobalScope = [
"Screen",
"Storage",
"StorageEvent",
"StyleSheet",
"StyleSheetList",
"TestBinding", // XXX
"TestBindingProxy", // XXX
"Text",