diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-12-01 12:14:46 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-12-01 12:14:46 +0000 |
commit | 682a216c41d55a0c8d76297f2411277b6c699e39 (patch) | |
tree | fd92373a13382fa0c0d9d414095d5d7209fd79af /src/parse/parse.h | |
parent | 1fb312312cdd01b3cf59950eacc7762f01c41a50 (diff) | |
download | libcss-682a216c41d55a0c8d76297f2411277b6c699e39.tar.gz libcss-682a216c41d55a0c8d76297f2411277b6c699e39.tar.bz2 |
Add end-block-content parse event
In order to cope with a situation where a block ends with a
selector which has no ruleset, add an end-block-content event
and in handling it, pop any intermediate states off the language
stack so that we're in block mode by the time the event is completed.
This fixes an assert situation caused by a ruleset such as:
@media screen { dodgy } .outer { top: 10px; }
Which has been encountered in the wild (likely a typo).
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'src/parse/parse.h')
-rw-r--r-- | src/parse/parse.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parse/parse.h b/src/parse/parse.h index e65f055..1e040de 100644 --- a/src/parse/parse.h +++ b/src/parse/parse.h @@ -31,6 +31,7 @@ typedef enum css_parser_event { CSS_PARSER_START_BLOCK, CSS_PARSER_END_BLOCK, CSS_PARSER_BLOCK_CONTENT, + CSS_PARSER_END_BLOCK_CONTENT, CSS_PARSER_DECLARATION } css_parser_event; |