CSS::Ob...Property(3)
okay bestie, welcome to the CSS::Ob...Property(3) page from the User Contributed Perl Documentation β it's giving CSS::Object::Property realness, and we're about to make CSS properties make sense. π
β¨
β¨ NAME β¨
CSS::Object::Property β CSS Object Oriented Property. literally the class that reps a CSS property. iconic.
π SYNOPSIS π
use CSS::Object::Property;
my $prop = CSS::Object::Property->new(
name => 'display',
value => 'inline-block',
format => $format_object,
debug => 3,
) || die( CSS::Object::Property->error );
π VERSION π
v0.2.0 β that's the version, periodt. π«Ά
π DESCRIPTION π
CSS::Object::Property is a class that represents a CSS property. no cap, that's the whole vibe. πΈ
π§ CONSTRUCTOR π§
π new
to instantiate a new CSS::Object::Property object, pass in a hash reference with these parameters:
debugβ this is an integer. the bigger it is, the more verbose the output gets. π₯formatβ this is aCSS::Object::Formatobject or one of its child modules.nameβ this is the property's name. when provided, it calls the methodnameto store the value.valueβ this is the property's name. when provided, it calls the methodvalueto store the value. (yes, bestie, the page says "name" here too β I'm just reporting the lore. π)
π METHODS π
π¦ format
this is a CSS::Object::Format object or one of its child modules. simple as that. β¨
β as_string
this calls the format and its method property_as_string in CSS::Object::Format.
it returns the css string produced, or undef, and sets an Module::Generic::Exception upon error. π
π§Έ format (the setter/getter one)
this sets or gets the CSS::Object::Format object. when it's set, this will share the formatter with all its CSS::Object::Value objects. bestie behavior. π«Ά
π name
sets or gets the property's name. the name stored here becomes a Module::Generic::Scalar, and thus all its object methods can be used. slay. π
π remove_from
this takes an CSS::Object::Rule object as a single argument and removes this property object from its list of elements.
it basically does:
$rule->elements->remove( $self );
it returns the current property object. π¦
π₯ value
sets the value or gets the last value for this property.
it takes either a string or a CSS::Object::Value object and adds it to the list of stored values for this property using the properties method.
it returns the last property value object in the values array. π
πΈ values
this sets or gets the list of CSS::Object::Value objects. it uses a Module::Generic::Array object to store those value objects.
it returns the array object. π
π§ values_as_string
this returns a string representation of all the CSS::Object::Value objects currently stored. it does this by calling the format's method values_as_string in CSS::Object::Format. periodt. β¨
π AUTHOR π
Jacques Deguest <jack@deguest.jp> β the icon behind it all. π
π SEE ALSO π
CSS::Object β go look, iykyk. π¦
π COPYRIGHT & LICENSE π
Copyright (c) 2020 DEGUEST Pte. Ltd.
you can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself. fr fr. π
and that's the whole page, bestie π«Άπ β brought to you by perl v5.42.2, dated 2026-02-15, and filed under CSS::Ob...Property(3). bye! π
β¨
π¦ where this page comes from
- alpine 3.24: perl-css-object-doc 0.2.0-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms