In the example below you see that the coffin with the input enumerate has the wrong with. I can fix this by using \@parboxrestore.
- Is there an expl3-solution?
- Should this solution be the default for coffins?

\documentclass{article}
\usepackage{xcolor}
\usepackage{kantlipsum}
\begin{document}
\ExplSyntaxOn
\coffin_new:N \l_xframed_store_one_coffin
\NewDocumentEnvironment { xframed } { }
{
\vcoffin_set:Nnw \l_xframed_store_one_coffin { .7\linewidth }
}
{
\vcoffin_set_end:
\fboxsep0pt\fbox{\coffin_display_handles:Nn \l_xframed_store_one_coffin { red }}
}
\ExplSyntaxOff
\begin{xframed}
\kant[2]
\end{xframed}
\begin{xframed}
\begin{enumerate}
\item foo
\item bar \verb+1+
\end{enumerate}
\end{xframed}
\makeatletter
\begin{xframed}
\@parboxrestore
\begin{enumerate}
\item foo
\item bar \verb+1+
\end{enumerate}
\end{xframed}
\end{document}