CSS::DOM::Value(3pm)
β¨ CSS::DOM::Value β¨
okay so bestie, welcome to CSS::DOM::Value β that's the CSSValue class for CSS::DOM, aka the little legend that holds your CSS property values π
it's a Perl thing, and yes, it lives in the User Contributed Perl Documentation corner of the manual (the 3pm girlies know) π
π VERSION π
Version 0.17 β she's serving, she's stable, she's that girl β¨
πΈ SYNOPSIS πΈ
# ...
no cap, that's literally the whole synopsis. the vibe is implied π¦
π DESCRIPTION π
So basically: this module implements objects that represent CSS property values. It implements the DOM CSSValue interface. Periodt. π
Here's the tea though β this class is used only for custom values (so like, neither primitive values nor lists, bestie, read it again) and the special 'inherit' value. That's the whole guest list. Not everybody gets in. π
π«Ά METHODS π«Ά
π§ Object Methods
cssTextβ returns a string representation of the attribute. And if you pass an argument? It sets it. Lowkey does both. Iconic behaviour honestly πcssValueTypeβ returns one of the constants down below β¬οΈ go look, they're cute.
π Constructor
You probably don't need to call this, but here it is anyway, because I'm generous:
$val = new CSS::DOM::Value %arguments;
The hash-style %arguments are as follows, bestie, take notes π:
typeβ"CSS_INHERIT"or"CSS_CUSTOM". Pick one. Those are the options. π«cssβ A string of CSS code. This is only used when"TYPE"is"CSS_CUSTOM". So like, don't bother otherwise, fr fr.ownerβ The style object that owns this value; if this is omitted, then the value is read-only. Also important: the value object holds a weak reference to the owner. She does not cling. She is secure. πpropertyβ The name of the CSS property to which this value belongs."cssText"uses this to determine how to parse text passed to it. So it's the translator, basically. π£οΈ
β CONSTANTS β
The following constants can be imported with use CSS::DOM::Value ':all'. They represent the type of CSS value. Slay, enumerated queen π
CSS_INHERIT(0)CSS_PRIMITIVE_VALUE(1)CSS_VALUE_LIST(2)CSS_CUSTOM(3)
π SEE ALSO π
go read these next, they're the friend group:
CSS::DOMCSS::DOM::Value::PrimitiveCSS::DOM::Value::ListCSS::DOM::Style
and that's the whole page, bestie!! π this was CSS::DOM::Value, page 3pm, brought to you by the User Contributed Perl Documentation girlies, running on perl v5.36.0, dated 2023-08-02. mwah, take care of her, she's precious πβ¨π¦
π¦ where this page comes from
- debian trixie: libcss-dom-perl 0.17-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcss-dom-perl 0.17-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcss-dom-perl 0.17-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcss-dom-perl 0.17-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms