版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

30 строки
817 B

  1. /**
  2. * The CSS interface holds useful CSS-related methods.
  3. *
  4. * Reference:
  5. * https://developer.mozilla.org/en-US/docs/Web/API/CSS.
  6. */
  7. export default class CSS {
  8. /**
  9. * Constructor.
  10. */
  11. constructor();
  12. /**
  13. * Returns a Boolean indicating if the pair property-value, or the condition, given in parameter is supported.
  14. *
  15. * TODO: Always returns "true" for now, but it should probably be improved in the future.
  16. *
  17. * @param _condition Property name or condition.
  18. * @param [_value] Value when using property name.
  19. * @returns "true" if supported.
  20. */
  21. supports(_condition: string, _value?: string): boolean;
  22. /**
  23. * Escapes a value.
  24. *
  25. * @param value Value to escape.
  26. * @returns Escaped string.
  27. */
  28. escape(value: string): boolean;
  29. }