https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 238bd0377cc35e0f367f63b7e16d912f94ed7845 authored by Chris Nardi on 03 April 2018, 03:08:55 UTC
Serialize font shorthand like any other shorthand
Tip revision: 238bd03
worklet-test-utils.js
// Returns a reference to a worklet object corresponding to a given type.
function get_worklet(type) {
  if (type == 'animation')
    return window.animationWorklet;
  if (type == 'layout')
    return CSS.layoutWorklet;
  if (type == 'paint')
    return CSS.paintWorklet;
  return undefined;
}
back to top