The current text_small rule uses php and parses stylesheets and inline styles to determine the size of the element. The PHP check trips up on the use of CSS vars making it less reliable, and also having to partially guess the cascade. Swapping to a JS based rule allows use of computed styles which are much more reliable as they give the actual value rendered.
The current text_small rule uses php and parses stylesheets and inline styles to determine the size of the element. The PHP check trips up on the use of CSS vars making it less reliable, and also having to partially guess the cascade. Swapping to a JS based rule allows use of computed styles which are much more reliable as they give the actual value rendered.