This lexer will let us to extract the relevant tokens from a compound CSS property
| package |
Docxpresso |
|---|---|
| subpackage |
Parser |
__construct()
| access |
public |
|---|---|
extractSingleProperty(string $prop, string $CSS) : string
| access |
public |
|---|---|
| static |
stringthe property we wish to extract
stringthe chain of CSS properties
string
tokenizeBackgroundProp(string $value) : array
| access |
public |
|---|
stringthe property that we want to parse
arraywith keys: 'color', 'position','repeat', image
tokenizeBorderProp(string $value) : array
| access |
public |
|---|
stringthe property that we want to parse
arraywith keys: width, style and color
tokenizeFontProp(string $value) : array
| access |
public |
|---|
stringthe property that we want to parse
arraywith keys: 'color', 'position','repeat', image
tokenizeListProp(string $value) : array
| access |
public |
|---|
stringthe property that we want to parse
arraywith keys: 'color', 'position','repeat', image
tokenizeUnits(string $dimension) : array
| access |
public |
|---|---|
| static |
stringthe chain with the CSS units
array
backgroundClipOrigin : array
| access |
public |
|---|---|
| static | |
| var |
array
backgroundPosition : array
| access |
public |
|---|---|
| static | |
| var |
array
backgroundRepeat : array
| access |
public |
|---|---|
| static | |
| var |
array
borderStyles : array
| access |
public |
|---|---|
| static | |
| var |
array
listStyles : array
| access |
public |
|---|---|
| static | |
| var |
array