tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

resize.mjs (2867B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 // InactivePropertyHelper `resize` test cases.
      6 export default [
      7  {
      8    info: "resize is inactive on non-overflowing element",
      9    property: "resize",
     10    tagName: "div",
     11    rules: ["div { resize: both; }"],
     12    isActive: false,
     13  },
     14  {
     15    info: "resize is active on overflowing element",
     16    property: "resize",
     17    tagName: "div",
     18    rules: [
     19      "div { resize: both; width: 50px; height: 50px; overflow: scroll; }",
     20    ],
     21    isActive: true,
     22  },
     23  {
     24    info: "resize is inactive on element with overflow: visible",
     25    property: "resize",
     26    tagName: "div",
     27    rules: ["div { resize: both; overflow: visible; }"],
     28    isActive: false,
     29  },
     30  {
     31    info: "resize is inactive on input element",
     32    property: "resize",
     33    tagName: "input",
     34    rules: ["input { resize: both; }"],
     35    isActive: false,
     36  },
     37  {
     38    info: "resize is active on textarea element",
     39    property: "resize",
     40    tagName: "textarea",
     41    rules: ["textarea { resize: both; }"],
     42    isActive: true,
     43  },
     44  // This has to be changed once bug 680823 is fixed.
     45  {
     46    info: "resize is inactive on iframe element",
     47    property: "resize",
     48    tagName: "iframe",
     49    rules: ["iframe { resize: both; }"],
     50    isActive: false,
     51  },
     52  // This has to be changed once bug 1280920 or its dependencies are fixed.
     53  {
     54    info: "resize is inactive on img element",
     55    property: "resize",
     56    tagName: "img",
     57    rules: ["img { resize: both; }"],
     58    isActive: false,
     59  },
     60  // This has to be changed once bug 1280920 or its dependencies are fixed.
     61  {
     62    info: "resize is inactive on picture element",
     63    property: "resize",
     64    tagName: "picture",
     65    rules: ["picture { resize: both; }"],
     66    isActive: false,
     67  },
     68  // This has to be changed once bug 1280920 or its dependencies are fixed.
     69  {
     70    info: "resize is inactive on svg element",
     71    property: "resize",
     72    tagName: "svg",
     73    rules: ["svg { resize: both; }"],
     74    isActive: false,
     75  },
     76  // This has to be changed once bug 1280920 or its dependencies are fixed.
     77  {
     78    info: "resize is inactive on canvas element",
     79    property: "resize",
     80    tagName: "canvas",
     81    rules: ["canvas { resize: both; }"],
     82    isActive: false,
     83  },
     84  // This has to be changed once bug 1280920 or its dependencies are fixed.
     85  {
     86    info: "resize is inactive on video element",
     87    property: "resize",
     88    tagName: "video",
     89    rules: ["video { resize: both; }"],
     90    isActive: false,
     91  },
     92  // This has to be changed once bug 1280920 or its dependencies are fixed.
     93  {
     94    info: "resize is inactive on object element",
     95    property: "resize",
     96    tagName: "object",
     97    rules: ["object { resize: both; }"],
     98    isActive: false,
     99  },
    100 ];