resolve-cascade

April 24, 2018 · View on GitHub

Index

Classes

Interfaces

Type aliases

Functions


Type aliases

FullCascade

Τ FullCascade: Map.<Element>,.<ElementStyle>

Defined in src/Cascade.ts:149


Functions

assertSameCascade

assertSameCascade(expectedCss: string, actualCss: string, expectedHtml: string, actualHtml: string): Promise.<AssertionResult>

Defined in src/assertCascade.ts:110

Parameters:

ParamTypeDescription
expectedCssstring-
actualCssstring-
expectedHtmlstring-
actualHtmlstring-

Returns: Promise.<AssertionResult>


assertSameStyle

assertSameStyle(property: string, actualValue: string, expectedValue: string): void

Defined in src/assertCascade.ts:82

This function makes sure two styles are functionally equivalent. for the given css property.

Currently this assures that initial values which can be different but functionally equivalent, are treated as the same value.

it also does a case insensitive value check and some whitespace normalization.

Parameters:

ParamTypeDescription
propertystringThe css property
actualValuestringa css value for the property
expectedValuestringa css value for the property

Returns: void


stylesForDeclaration

stylesForDeclaration(decl: Declaration): ComputedStyle

Defined in src/Cascade.ts:130

Parameters:

ParamTypeDescription
declDeclaration-

Returns: ComputedStyle