Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/css-tag"

Index

Classes

Variables

Functions

Variables

Const supportsAdoptingStyleSheets

supportsAdoptingStyleSheets: boolean = ('adoptedStyleSheets' in Document.prototype) &&('replace' in CSSStyleSheet.prototype)
license

Copyright (c) 2019 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt

Functions

Const css

  • Template tag which which can be used with LitElement's style property to set element styles. For security reasons, only literal string values may be used. To incorporate non-literal values unsafeCSS may be used inside a template string part.

    Parameters

    • strings: TemplateStringsArray
    • Rest ...values: (number | CSSResult)[]

    Returns CSSResult

Const unsafeCSS

  • Wrap a value for interpolation in a css tagged template literal.

    This is unsafe because untrusted CSS text can be used to phone home or exfiltrate data to an attacker controlled site. Take care to only use this with trusted input.

    Parameters

    • value: unknown

    Returns CSSResult

Generated using TypeDoc