https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 2b8a5ccbad0af75dceea3357c44a81ce0c39cb0a authored by Mason Freed on 13 December 2018, 18:21:43 UTC
Revert "Implement correct opacity and filter handling within backdrop-filter"
Tip revision: 2b8a5cc
worklet-test-utils.js
// Returns a reference to a worklet object corresponding to a given type.
function get_worklet(type) {
  if (type == 'animation')
    return CSS.animationWorklet;
  if (type == 'layout')
    return CSS.layoutWorklet;
  if (type == 'paint')
    return CSS.paintWorklet;
  if (type == 'audio')
    return new OfflineAudioContext(2,44100*40,44100).audioWorklet;
  return undefined;
}
back to top