I am not 100% sure of this because I pulled it out of the experiment and did not look at the source of Firebug, but the red dotted line seems to always line up with the ruler.
For instance: