starting-style-adjustment.html (800B)
1 <!DOCTYPE html> 2 <title>CSS Transitions Test: Style adjustments for @starting-style</title> 3 <link rel="help" href="https://drafts.csswg.org/css-transitions-2/#defining-before-change-style-the-starting-style-rule"> 4 <script src="/resources/testharness.js"></script> 5 <script src="/resources/testharnessreport.js"></script> 6 <script src="/css/css-transitions/support/helper.js"></script> 7 <style> 8 legend { 9 transition: display 1s step-end allow-discrete; 10 } 11 @starting-style { 12 legend { display:inline; } 13 } 14 </style> 15 <body> 16 <legend></legend> 17 <script> 18 promise_test(async t => { 19 await waitForAnimationFrames(1); 20 assert_equals(document.getAnimations().length, 0, "No transitions"); 21 }, "The display property in <legend> @starting-style should be blockified so no transition should start"); 22 </script> 23 </body>