historical.html (1427B)
1 <!DOCTYPE html> 2 <title>Historical features</title> 3 <link rel="help" href="https://drafts.csswg.org/cssom/#changes-from-5-december-2013"> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <div id=log></div> 7 <script> 8 [ 9 "selectedStyleSheetSet", 10 "lastStyleSheetSet", 11 "preferredStyleSheetSet", 12 "styleSheetSets", 13 "enableStyleSheetsForSet", 14 "selectedStylesheetSet", 15 "preferredStylesheetSet", 16 ].forEach(function(name) { 17 test(function() { 18 assert_false(name in document); 19 20 var doc = document.implementation.createDocument(null, null, null); 21 assert_false(name in doc); 22 }, "Historical Document member: " + name); 23 }); 24 25 [ 26 "Rect", 27 "RGBColor", 28 "CSSValue", 29 "CSSPrimitiveValue", 30 "CSSValueList", 31 "CSS2Properties", 32 ].forEach(function(name) { 33 test(function() { 34 assert_false(name in window); 35 }, "Historical interface: " + name); 36 }); 37 38 [ 39 "getPropertyCSSValue", 40 "setPropertyValue", 41 "setPropertyPriority", 42 ].forEach(function(name) { 43 test(function() { 44 assert_false(name in document.body.style); 45 }, "Historical CSSStyleDeclaration member: " + name); 46 }); 47 48 [ 49 "cascadedStyle", 50 "defaultStyle", 51 "rawComputedStyle", 52 "usedStyle", 53 ].forEach(function(name) { 54 test(function() { 55 assert_false(name in document.body); 56 assert_false(name in document.createElement("test")); 57 }, "Historical Element member: " + name); 58 }); 59 </script>