compat

package
v0.8.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSSFeature added in v0.7.9

type CSSFeature uint32
const (
	HexRGBA CSSFeature = 1 << iota

	RebeccaPurple

	// This feature includes all of the following:
	// - Allow floats in rgb() and rgba()
	// - hsl() can accept alpha values
	// - rgb() can accept alpha values
	// - Space-separated functional color notations
	Modern_RGB_HSL
)

func UnsupportedCSSFeatures added in v0.7.9

func UnsupportedCSSFeatures(constraints map[Engine][]int) (unsupported CSSFeature)

Return all features that are not available in at least one environment

func (CSSFeature) Has added in v0.7.9

func (features CSSFeature) Has(feature CSSFeature) bool

type Engine

type Engine uint8
const (
	Chrome Engine = iota
	Edge
	ES
	Firefox
	IOS
	Node
	Safari
)

type JSFeature added in v0.7.9

type JSFeature uint64
const (
	ArraySpread JSFeature = 1 << iota
	Arrow
	AsyncAwait
	AsyncGenerator
	BigInt
	Class
	ClassField
	ClassPrivateAccessor
	ClassPrivateField
	ClassPrivateMethod
	ClassPrivateStaticAccessor
	ClassPrivateStaticField
	ClassPrivateStaticMethod
	ClassStaticField
	Const
	DefaultArgument
	Destructuring
	ExponentOperator
	ExportStarAs
	ForAwait
	ForOf
	Generator
	Hashbang
	ImportMeta
	Let
	LogicalAssignment
	NestedRestBinding
	NewTarget
	NullishCoalescing
	ObjectAccessors
	ObjectExtensions
	ObjectRestSpread
	OptionalCatchBinding
	OptionalChain
	RestArgument
	TemplateLiteral
	TopLevelAwait
	UnicodeEscapes
)

func UnsupportedJSFeatures added in v0.7.9

func UnsupportedJSFeatures(constraints map[Engine][]int) (unsupported JSFeature)

Return all features that are not available in at least one environment

func (JSFeature) Has added in v0.7.9

func (features JSFeature) Has(feature JSFeature) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL