tor-browser

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

constants.js (824B)


      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 "use strict";
      6 
      7 /**
      8 * All CSS <angle> types that properties can support.
      9 */
     10 exports.CSS_ANGLEUNIT = {
     11  deg: "deg",
     12  rad: "rad",
     13  grad: "grad",
     14  turn: "turn",
     15 };
     16 
     17 /**
     18 * @backward-compat { version 70 } Mapping of InspectorPropertyType to old type ID.
     19 */
     20 exports.CSS_TYPES = {
     21  color: 2,
     22  gradient: 4,
     23  "timing-function": 10,
     24 };
     25 
     26 /**
     27 * Supported pseudo-class locks in the order in which they appear in the pseudo-class
     28 * panel in the Rules sidebar panel of the Inspector.
     29 */
     30 exports.PSEUDO_CLASSES = [
     31  ":hover",
     32  ":active",
     33  ":focus",
     34  ":focus-visible",
     35  ":focus-within",
     36  ":visited",
     37  ":target",
     38 ];