Model: Background color test

Set the background with CSS. Note that because the model exists in a plane conceptually behind the page, it is not recommended to support a transparent background.


HTML

<model alt="A model of a teapot">
  <source src="./teapot.usdz" type="model/vnd.usdz+zip" />
  <source src="./teapot.glb" type="model/gltf-binary" />
</model>
  

CSS

model {
  background-color:blue;
}