# How to change font size with longtable environment while endfloat?

The following code only changes the font of placeholder rather than my texts in the table. Any method to fix that? thanks for the help!

\documentclass[12pt]{article}
\usepackage{longtable}
\DeclareDelayedFloatFlavor{longtable}{table}

\begin{document}

{
\tiny
\begin{longtable}{ccc}
\caption{caption}
\label{table:label}  \\
\hline
1&2&3 \\
cxvb&xvcb&xvcb\\
\hline
\end{longtable}
}

\end{document}


\documentclass[12pt]{article}
\usepackage{longtable}
\newenvironment{tinylongtable}{\tiny}{}
\DeclareDelayedFloatFlavor{tinylongtable}{table}

\begin{document}

\begin{tinylongtable}
\begin{longtable}{ccc}
\caption{caption}
\label{table:label}  \\
\hline
1&2&3 \\