Consider the closed convex subset $\mathcal{F} = \{f \in C[0,1] : 0 \leq f \leq 1, f(0)=0, f(1)=1\}$. Consider the polynomial class $\mathcal{P} = \{p \text{ is a polynomial} : p(0)=0, p(1)=1, 0 \leq p \leq 1\}$. Is $\mathcal{P}$ dense in $\mathcal{F}$ in the sup norm?
Is anything known about Weierstrass theorem generalized as above to handle constraints? Or is there a counterexample?