css4j / css4j

CSS parser with Event and Object Model APIs, a DOM wrapper and a CSS-aware DOM implementation. Written in the Java™ language.

Home Page:https://css4j.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OM expressions need stricter sanity checks for missing operands

carlosame opened this issue · comments

Object Model expressions assume that certain sanity checks were performed at the NSAC level, however calc() expressions may have been parsed with a var() value inside. Once that value is substituted, the resulting expression may not meet these expectations.

To deal with those cases, the Object Model expressions need stricter sanity checks about missing operands.