Τ FullCascade: Map
.<Element
>,.<ElementStyle>
Defined in src/Cascade.ts:149
▸ 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(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(decl: Declaration
): ComputedStyle
Defined in src/Cascade.ts:130
Parameters:
Param | Type | Description |
---|---|---|
decl | Declaration |
- |
Returns: ComputedStyle