Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-properties-values-api/crashtests/transition-to-none-crash-002.html - WPT Dashboard Interop Dashboard
<!doctype html>
<meta charset=utf8>
<style>
div {
transition: --my-property steps(2, start) 100s;
}
</style>
<div id=div></div>
<script>
let style = document.createElement('style');
style.textContent = `
@property --my-property {
syntax: "<angle>";
inherits: false;
initial-value: 0deg;
}
`;
document.documentElement.append(style);
getComputedStyle(div).getPropertyValue("--my-property");
style.remove();
</script>