I try to give blue color outside of the face and green color inside of the same face. I added this tag.
<TwoSidedMaterial diffuseColor="0 0 1" shininess="0.0" backDiffuseColor="0 1 0" backShininess="0.0" separateBackColor="true" backTransparency="0.0"></TwoSidedMaterial>
diffuseColor= Blue and backDiffuseColor=Green but it shows only blue color on both side (inside and outside). backDiffuseColor not applyed.
This is a refrence link
There might be a bug in the library because the reference example also shows a single material (red) instead of two (red and blue):
Your best bet is probably to open an issue in the X3DOM repository on Github.