boxshadow-dynamic.xul 698 B

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0"?>
  2. <?xml-stylesheet type="text/css" href="data:text/css,
  3. hbox {
  4. margin: 50px;
  5. background: yellow;
  6. }
  7. hbox[x] {
  8. box-shadow: 1px 2px 2px black, 0 0 7px white, 0 0 14px rgb(50, 170, 255), 0 0 21px rgb(50, 170, 255);
  9. border-radius: 10px;
  10. }
  11. "?>
  12. <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  13. class="reftest-wait">
  14. <script>
  15. <![CDATA[
  16. document.documentElement.addEventListener("MozReftestInvalidate",
  17. doTest, false);
  18. function doTest() {
  19. document.getElementById("hbox1").setAttribute("x",1);
  20. document.documentElement.removeAttribute("class");
  21. }
  22. ]]>
  23. </script>
  24. <hbox id="hbox1" flex="1"/>
  25. </window>