CSS Functional Notation - CSS: Cascading Style Sheets 编辑

CSS functional notation is a type of CSS value that can represent more complex data types or invoke special data processing or calculations.

Syntax

selector {
  property: functional-notation( [argument]? [, argument]! );
}

The syntax starts with the name of the functional notation, followed by a left parenthesis (. Next up are the notation argument(s), and the function is finished off with a closing parenthesis ).

Functions can take multiple arguments, which are formatted similarly to CSS property values. Whitespace is allowed, but they are optional inside the parentheses. In some functional notations multiple arguments are separated by commas, while others use spaces.

Index

Functional notation defined by a set of CSS specifications includes the following:

A

  • abs() (math) This is an experimental API that should not be used in production code.
  • acos() (math) This is an experimental API that should not be used in production code.
  • annotation() (font)
  • asin() (math) This is an experimental API that should not be used in production code.
  • atan() (math) This is an experimental API that should not be used in production code.
  • atan2() (math) This is an experimental API that should not be used in production code.
  • attr() (math) This is an experimental API that should not be used in production code.

B

C

D

E

  • element() This is an experimental API that should not be used in production code.
  • env() This is an experimental API that should not be used in production code.
  • ellipse() (shape)
  • exp() (math) This is an experimental API that should not be used in production code.

F

G

H

  • hsl() (colors)
  • hsla() (colors)
  • hue-rotate() (filter)
  • hwb() (colors) This is an experimental API that should not be used in production code.
  • hypot() (math) This is an experimental API that should not be used in production code.

I

  • image() This is an experimental API that should not be used in production code.
  • image-set() This is an experimental API that should not be used in production code.
  • inset() (shape)
  • invert() (filter)

L

  • lab() (colors) This is an experimental API that should not be used in production code.
  • lch() (colors) This is an experimental API that should not be used in production code.
  • leader()
  • linear-gradient()
  • local() This is an experimental API that should not be used in production code.
  • log() (math) This is an experimental API that should not be used in production code.

M

O

P

  • paint() This is an experimental API that should not be used in production code.
  • path() (shape)
  • perspective() (transform)
  • polygon() (shape)
  • pow() (math) This is an experimental API that should not be used in production code.

R

S

T

U

V

Specifications

SpecificationStatusComment
CSS Values and Units Module Level 4Editor's DraftAdds toggle(), attr(), calc(), min(), max(), clamp(), round(), mod(), rem(), mod(), sin(), cos(), tan(), asin(), acos(), atan(), atan2(), pow(), sqrt(), hypot(), log(), exp(), abs() and sign() functional notation.
CSS Values and Units Module Level 3Candidate RecommendationAdds calc() functional notation.
CSS Color Module Level 4Working DraftAdds commaless syntaxes for the rgb(), rgba(), hsl(), and hsla() functional notation.
Allows alpha values in rgb() and hsl(), turning rgba() and hsla() into (deprecated) aliases for them.
Adds hwb(), device-cmyk(), and color() functions.
CSS Color Module Level 3RecommendationAdds rgba(), hsl(), hsla() functional notation.
CSS Images Module Level 4Working DraftAdds element(), image(), image-set() and conic-gradient() functional notation.

See also

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:79 次

字数:27720

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文