Per the current spec, observe(target, options) is suppose to call unobserve(target) if target is already in the observationTargets.
From my understanding, this should clear the lastReportedSizes array for the target. Hence, even if the target hasn't changed size, re-calling observe with the target should always fire an observation.
In practice, all major web browsers do not appear to implement this. Instead, to get the observation to fire, I must manually call unobserve(target) first and then call observe(target) again.
In this example, adding or removing a column should always trigger an observation. However, it only triggers an observation if I explicitly call unobserve() first.
Per the current spec,
observe(target, options)is suppose to callunobserve(target)if target is already in theobservationTargets.From my understanding, this should clear the
lastReportedSizesarray for the target. Hence, even if the target hasn't changed size, re-callingobservewith the target should always fire an observation.In practice, all major web browsers do not appear to implement this. Instead, to get the observation to fire, I must manually call
unobserve(target)first and then callobserve(target)again.In this example, adding or removing a column should always trigger an observation. However, it only triggers an observation if I explicitly call
unobserve()first.