libcss
Loading...
Searching...
No Matches
Functions
important.h File Reference
#include "stylesheet.h"
#include "parse/language.h"

Go to the source code of this file.

Functions

css_error css__parse_important (css_language *c, const parserutils_vector *vector, int32_t *ctx, uint8_t *result)
 
void css__make_style_important (css_style *style)
 

Function Documentation

◆ css__make_style_important()

void css__make_style_important ( css_style style)

Make a style important

Parameters
styleThe style to modify

◆ css__parse_important()

css_error css__parse_important ( css_language c,
const parserutils_vector *  vector,
int32_t *  ctx,
uint8_t *  result 
)

Parse !important

Parameters
cParsing context
vectorVector of tokens to process
ctxPointer to vector iteration context
resultPointer to location to receive result
Returns
CSS_OK on success, CSS_INVALID if "S* ! S* important" is not at the start of the vector

Post condition: *ctx is updated with the next token to process If the input is invalid, then *ctx remains unchanged.