testing/web-platform/tests/css/cssom/historical.html
author Cosmin Sabou <csabou@mozilla.com>
Sat, 12 Jul 2025 09:18:08 +0300 (6 hours ago)
changeset 796290 5ad1f0c58c82bdfa2f42fed870bbe143465398d0
parent 422162 24e14dfd9d8d5a7092cb1266e76cdd872ae51d70
permissions -rw-r--r--
Revert "Bug 1977019 - re-enable hw video decoding testing. r=media-playback-reviewers,jolin" for causing win mda failures on test_hw_video_decoding.html This reverts commit 158474bdc0cf585b701bc47921f0a7d84f7bb84d.
<!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>