Is resonance possible in a structure with consecutive double bonds? Like in carbon dioxide (CO2)

With all the knowledge that I have secured reading about resonance, I know that delocalisation of pi electrons is possible only with the [p orbitals](https://en.wikipedia.org/wiki/Atomic_orbital) being in the same plane.


So for two consecutive double bonds, the orbitals wouldn't be in the same plane. So there shouldn't be any hybridization, right? Like in $\ce{CO2}$, the O's are $Sp^2$ hybrids and C is sp, as per the structure, the three unhybridized p orbitals wouldn't be in the same plane, making it not possible to have resonance in it. But that isn't the case with it. *It does have* resonance structures in it. What am I missing?




Not only can there be resonance with cumulated double bonds, this is much in evidence with carbon dioxide itself. What is formally the pi bond between the carbon atom and each oxygen atom conjugates with a formal $p$-orbital lone pair on the *other* oxygen atom, which is in the same plane for each respective bond. Thus the pi electrons become delocalized, producing a series of contributing structures:


$\ce{\overset{-}{O}-C#\overset{+}{O}}$


$\ce{O=C=O}$


$\ce{\overset{+}{O}#C-\overset{-}{O}}$


The effect of this delocalization is to make the bonds shorter and stronger in carbon dioxide than they would be in an isolated carbon-oxygen double bond: From [Wikipedia](https://en.wikipedia.org/wiki/Carbon%E2%80%93oxygen_bond), we see the difference in bond lengths:



> 
> Bond lengths of C=O bonds are around 123 pm in carbonyl compounds. The C=O bond length in carbon dioxide is 116 pm.
> 
> 
> 


 9