ladybird/Libraries/LibWeb/CSS/CSSPerspective.idl
Sam Atkins 2ffbb284f2 LibWeb/CSS: Implement CSSPerspective
Equivalent to the perspective() transform function.

+34 WPT subtests, and the transformvalue-normalization test now runs to
completion instead of throwing an error - though its cases still fail
until CSSTransformValue is implemented.
2025-09-24 12:27:05 +01:00

12 lines
436 B
Text

#import <CSS/CSSKeywordValue.idl>
#import <CSS/CSSNumericValue.idl>
#import <CSS/CSSTransformComponent.idl>
typedef (CSSNumericValue or CSSKeywordish) CSSPerspectiveValue;
// https://drafts.css-houdini.org/css-typed-om-1/#cssperspective
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
interface CSSPerspective : CSSTransformComponent {
constructor(CSSPerspectiveValue length);
attribute CSSPerspectiveValue length;
};