On Jun 17, 2019, at 1:14 PM, Amir Caspi <ceph...@3phase.com> wrote:
> 
> rawbody       AC_HIDDEN_FONT  /font-size\s*:\s*0\s*(?:em|pt|px|%)\s*;/
> 

Actually, based on another spample (https://pastebin.com/rrU2AsVT 
<https://pastebin.com/rrU2AsVT>), let's modify this one -- the em/pt/px/% isn't 
required:

rawbody AC_HIDDEN_FONT  /font-size\s*:\s*0\s*(?:em|pt|px|%)?\s*;/

It might also be prudent to look for 0-height or 0-width line-height, 
max-height, max-width... so that would change the hidden-font to:

rawbody AC_HIDDEN_FONT  
/(?:font-size|line-height|max-height|max-width)\s*:\s*0\s*(?:em|pt|px|%)?\s*;/

And, looks like another rule might be useful:

rawbody AC_LARGE_NEG_INDENT     /text-indent\s*:\s*-[0-9]{3,}(?:em|pt|px|%)\s*;/

This looks for a large negative text-indent, as is used in the spample linked 
above.

Cheers.

--- Amir

Reply via email to