CSS::Property(3pm)
π CSS::Property π
okay bestie, so this is CSS::Property β literally a property in a CSS object tree. that's the whole vibe. one little property, living its best life inside a bigger CSS structure. β¨
πΈ SYNOPSIS πΈ
use CSS;
that's it. that's the whole entrance. iconic behaviour honestly. π
π¦ DESCRIPTION π¦
so this module is the little guy that represents a property in a CSS object tree. like, one property. one job. we love a focused queen. π
and if you wanna actually understand the whole CSS object tree situation, the tea is over in the CSS.pm pod β go read that, it's the main character, this module is just the supporting cast. π«Ά
β¨ METHODS β¨
π CONSTRUCTORS
new()ornew( { ..options.. } )β this constructor hands you back a brand newCSS::Propertyobject, and you can pass it an optional hash of options if you're feeling generous:
property property name (as string)
value simple value string
adaptor adaptor to use for serialization
and listen β if you pass the value option, a CSS::Value object gets automatically created and added to the object's values list. no extra work, it just happens. slay. β¨
π ACCESSORS
set_adaptor( 'CSS::Adaptor::Foo' )β this one sets the current adaptor for the object. that's it, that's the whole thing. πͺvalues()β this is the one that serializes the property's values using the current adaptor. it returns a string, and that string comes straight from the adaptor'soutput_values()method. so like, the adaptor is doing the talking, this method is just the messenger. π
π AUTHOR π
Copyright (C) 2003-2004, Cal Henderson <cal@iamcal.com>
(we love Cal. shoutout. π)
π SEE ALSO π
and that's the whole page bestie!! this was documented as perl v5.32.0, dated 2020-12-29, and it's part of the User Contributed Perl Documentation situation. go forth and build your CSS object trees, i believe in you. π§π
π¦ where this page comes from
- debian bookworm: libcss-perl 1.09-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libcss-perl 1.09-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcss-perl 1.09-1.1 Β· 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