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:
| Param | Type | Description |
|---|---|---|
| expectedCss | string | - |
| actualCss | string | - |
| expectedHtml | string | - |
| actualHtml | string | - |
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:
| Param | Type | Description |
|---|---|---|
| property | string | The css property |
| actualValue | string | a css value for the property |
| expectedValue | string | a css value for the property |
Returns: void
stylesForDeclaration
▸ stylesForDeclaration(decl: Declaration): ComputedStyle
Defined in src/Cascade.ts:130
Parameters:
| Param | Type | Description |
|---|---|---|
| decl | Declaration | - |
Returns: ComputedStyle