As stated in the headline, I am trying to add color to my tables but it seems the booktab package leave extra white space between \toprule and \bottomrule that are not covered by \xcolor

\documentclass{article}
\usepackage{booktabs}
\usepackage[table]{xcolor}
\begin{document}
\renewcommand{\arraystretch}{1.5}
\rowcolors{1}{green}{blue}
\begin{tabular}{ll}
\toprule
foo&foo\\
bar&bar\\
foo&bar\\
\bottomrule
\end{tabular}
\end{document}
The problem does not occur when I used \hline instead. I would like to know if there is an easy fix and if it is not too much trouble, an explanation of what is going on here?Thanks in advance.


\toprule,midruleand\bottomruleto provide further visual structure. – Mico May 23 '20 at 12:23