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/initial-in-audio-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<audio>
<div>
<div id=test1></div>
</div>
</audio>
<script>
getComputedStyle(test1).getPropertyValue('--a');
CSS.registerProperty({name: '--a', syntax: '<length>', initialValue: '2px', inherits: false});
test1.style.setProperty('--a', 'initial');
getComputedStyle(test1).getPropertyValue('--a');
</script>