disable_transitions.theme.css

Same filename in other branches
  1. 9 core/modules/system/tests/modules/css_disable_transitions_test/css/disable_transitions.theme.css
  2. 10 core/modules/system/tests/modules/css_disable_transitions_test/css/disable_transitions.theme.css
  3. 11.x core/modules/system/tests/modules/css_disable_transitions_test/css/disable_transitions.theme.css
/**
 * Remove CSS animation effects that can cause random test failures.
 */
* {
  /* CSS transitions. */
  -o-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -webkit-transition: none !important;
  transition: none !important;
  -o-transition-property: none !important;
  -moz-transition-property: none !important;
  -ms-transition-property: none !important;
  -webkit-transition-property: none !important;
  transition-property: none !important;
  /* CSS animations. */
  -webkit-animation: none !important;
  -moz-animation: none !important;
  -o-animation: none !important;
  -ms-animation: none !important;
  animation: none !important;
}

/**
 * Prevent youtube and third party content in iFrames from affecting tests.
 *
 * @todo Remove once bug in Chromedriver is fixed.
     https://bugs.chromium.org/p/chromedriver/issues/detail?id=2758
 */
iframe.media-oembed-content {
  width: 0 !important;
  height: 0 !important;
}

File

core/modules/system/tests/modules/css_disable_transitions_test/css/disable_transitions.theme.css

View source
  1. /**
  2. * Remove CSS animation effects that can cause random test failures.
  3. */
  4. * {
  5. /* CSS transitions. */
  6. -o-transition: none !important;
  7. -moz-transition: none !important;
  8. -ms-transition: none !important;
  9. -webkit-transition: none !important;
  10. transition: none !important;
  11. -o-transition-property: none !important;
  12. -moz-transition-property: none !important;
  13. -ms-transition-property: none !important;
  14. -webkit-transition-property: none !important;
  15. transition-property: none !important;
  16. /* CSS animations. */
  17. -webkit-animation: none !important;
  18. -moz-animation: none !important;
  19. -o-animation: none !important;
  20. -ms-animation: none !important;
  21. animation: none !important;
  22. }
  23. /**
  24. * Prevent youtube and third party content in iFrames from affecting tests.
  25. *
  26. * @todo Remove once bug in Chromedriver is fixed.
  27. https://bugs.chromium.org/p/chromedriver/issues/detail?id=2758
  28. */
  29. iframe.media-oembed-content {
  30. width: 0 !important;
  31. height: 0 !important;
  32. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.