CSSPropertyRule

Baseline 2024
Newly available

Since July 2024, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

Giao diện CSSPropertyRule của CSS Properties and Values API đại diện cho quy tắc CSS @property duy nhất.

CSSRule CSSPropertyRule

Thuộc tính phiên bản

Kế thừa các thuộc tính từ tổ tiên của nó CSSRule.

CSSPropertyRule.inherits Read only

Trả về cờ kế thừa của quy tắc thuộc tính tùy chỉnh.

CSSPropertyRule.initialValue Read only

Trả về giá trị ban đầu của quy tắc thuộc tính tùy chỉnh.

CSSPropertyRule.name Read only

Trả về tên của quy tắc thuộc tính tùy chỉnh, tức là tên của thuộc tính.

CSSPropertyRule.syntax Read only

Trả về cú pháp theo nghĩa đen của quy tắc thuộc tính tùy chỉnh.

Phương thức phiên bản

Không có phương thức nào cụ thể; kế thừa các phương thức từ tổ tiên của nó CSSRule.

Thông số kỹ thuật

Thông số kỹ thuật
CSS Properties and Values API Level 1
# the-css-property-rule-interface

Tương thích trình duyệt