summaryrefslogtreecommitdiff
path: root/src/parse/properties/play_during.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-08-13 16:23:56 +0100
committerMichael Drake <mdrake.unique@gmail.com>2022-08-29 13:49:20 +0100
commit2504bb6f6414ae36c036a84d21f7821178dc58ee (patch)
tree8c6573ae9fe6ebd8af7ff8eead85c387557a5c3b /src/parse/properties/play_during.c
parent0997e85ec5f14bd0d6959b9201fcd3845b224747 (diff)
downloadlibcss-2504bb6f6414ae36c036a84d21f7821178dc58ee.tar.gz
libcss-2504bb6f6414ae36c036a84d21f7821178dc58ee.tar.bz2
Parse: Nongenerated properties: Explicit defaults
Diffstat (limited to 'src/parse/properties/play_during.c')
-rw-r--r--src/parse/properties/play_during.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/parse/properties/play_during.c b/src/parse/properties/play_during.c
index 109ae64..54e048f 100644
--- a/src/parse/properties/play_during.c
+++ b/src/parse/properties/play_during.c
@@ -54,14 +54,32 @@ css_error css__parse_play_during(css_language *c,
token->idata, c->strings[INHERIT],
&match) == lwc_error_ok && match)) {
flags |= FLAG_INHERIT;
+
+ } else if ((lwc_string_caseless_isequal(
+ token->idata, c->strings[INITIAL],
+ &match) == lwc_error_ok && match)) {
+ flags |= FLAG_INITIAL;
+
+ } else if ((lwc_string_caseless_isequal(
+ token->idata, c->strings[REVERT],
+ &match) == lwc_error_ok && match)) {
+ flags |= FLAG_REVERT;
+
+ } else if ((lwc_string_caseless_isequal(
+ token->idata, c->strings[UNSET],
+ &match) == lwc_error_ok && match)) {
+ flags |= FLAG_UNSET;
+
} else if ((lwc_string_caseless_isequal(
token->idata, c->strings[NONE],
&match) == lwc_error_ok && match)) {
value = PLAY_DURING_NONE;
+
} else if ((lwc_string_caseless_isequal(
token->idata, c->strings[AUTO],
&match) == lwc_error_ok && match)) {
value = PLAY_DURING_AUTO;
+
} else {
*ctx = orig_ctx;
return CSS_INVALID;