| <!DOCTYPE html><!-- webkit-test-runner [ experimental:CSSTypedOMEnabled=true ] --> |
| <meta name="author" title="Justin Michaud" href="mailto:justin_michaud@webkit.org"> |
| <meta name="assert" content="Test that the [SameObject] idl attribute is respected"> |
| <script src="../resources/js-test-pre.js"></script> |
| <div id="el" style = "width: 150px; height: 10em; --my-prop: hello;"></div> |
| description("Tests that idl [SameObject] is specified."); |
| window.jsTestIsAsync = true; |
| function promiseChain(body, times) { |
| return new Promise(function(resolve, reject) { |
| handle = setInterval(function() { |
| el.attributeStyleMap.alive = true; |
| return !!el.attributeStyleMap.alive; |
| testPassed("element is still alive"); |
| testFailed("element is not alive"); |
| window.onload = function() { |
| promiseChain(function() { |
| }, 10).then(function () { |
| <script src="../resources/js-test-post.js"></script> |