Skip to content

Commit

Permalink
css: do not stop processing when finding a custom property.
Browse files Browse the repository at this point in the history
If a user agent finds something that it does not support, should ignore it and
proceed. See https://www.w3.org/TR/CSS22/syndata.html#parsing-errors

"User agents must ignore a declaration with an unknown property."

See also #35.
  • Loading branch information
carlosame committed Aug 11, 2022
1 parent e34c67a commit 4be5339
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1718,7 +1718,7 @@ public void property(String name, LexicalUnit value, boolean important) {

@Override
public void lexicalProperty(String name, LexicalUnit value, boolean important) {
throwUnsupportedEx();
// Ignore custom properties
}

private void throwUnsupportedEx() {
Expand Down

0 comments on commit 4be5339

Please sign in to comment.