disable_transitions.theme.css

Same filename and directory in other branches
  1. 9 core/modules/system/tests/modules/css_disable_transitions_test/css/disable_transitions.theme.css
  2. 8.9.x core/modules/system/tests/modules/css_disable_transitions_test/css/disable_transitions.theme.css
  3. 10 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;
  -webkit-transition: none !important;
  transition: none !important;
  -o-transition-property: none !important;
  -webkit-transition-property: none !important;
  transition-property: none !important;
  /* CSS animations. */
  -webkit-animation: none !important;
  -o-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. -webkit-transition: none !important;
  8. transition: none !important;
  9. -o-transition-property: none !important;
  10. -webkit-transition-property: none !important;
  11. transition-property: none !important;
  12. /* CSS animations. */
  13. -webkit-animation: none !important;
  14. -o-animation: none !important;
  15. animation: none !important;
  16. }
  17. /**
  18. * Prevent youtube and third party content in iFrames from affecting tests.
  19. *
  20. * @todo Remove once bug in Chromedriver is fixed.
  21. https://bugs.chromium.org/p/chromedriver/issues/detail?id=2758
  22. */
  23. iframe.media-oembed-content {
  24. width: 0 !important;
  25. height: 0 !important;
  26. }

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