summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/cssom/historical.html
blob: 44f3f6c8f15a13b2c32dad2672ea9383330e8082 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<title>Historical features</title>
<link rel="help" href="https://drafts.csswg.org/cssom/#changes-from-5-december-2013">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
[
  "selectedStyleSheetSet",
  "lastStyleSheetSet",
  "preferredStyleSheetSet",
  "styleSheetSets",
  "enableStyleSheetsForSet",
  "selectedStylesheetSet",
  "preferredStylesheetSet",
].forEach(function(name) {
  test(function() {
    assert_false(name in document);

    var doc = document.implementation.createDocument(null, null, null);
    assert_false(name in doc);
  }, "Historical Document member: " + name);
});

[
  "Rect",
  "RGBColor",
  "CSSValue",
  "CSSPrimitiveValue",
  "CSSValueList",
].forEach(function(name) {
  test(function() {
    assert_false(name in window);
  }, "Historical interface: " + name);
});

[
  "getPropertyCSSValue",
  "setPropertyValue",
  "setPropertyPriority",
].forEach(function(name) {
  test(function() {
    assert_false(name in document.body.style);
  }, "Historical CSSStyleDeclaration member: " + name);
});

[
  "cascadedStyle",
  "defaultStyle",
  "rawComputedStyle",
  "usedStyle",
].forEach(function(name) {
  test(function() {
    assert_false(name in document.body);
    assert_false(name in document.createElement("test"));
  }, "Historical Element member: " + name);
});
</script>