When elements have parents that for example have display: contents set, the parents are actually not visible and have a 0 bounding rect. This could break calculation of highlight rect if selector matches multiple DOM elements. Now parents with 0 bounding rect are ignored.
When elements have parents that for example have
display: contents
set, the parents are actually not visible and have a 0 bounding rect. This could break calculation of highlight rect if selector matches multiple DOM elements. Now parents with 0 bounding rect are ignored.