CSS::Ob...yframes(3)
π CSS::Ob...yframes(3) β CSS::Object::Rule::Keyframes π
okay so bestie, this page comes from the User Contributed Perl Documentation, and yes, the manual name is truncated as CSS::Ob...yframes(3) β we are keeping that exactly. The class is CSS::Object::Rule::Keyframes, and it is literally giving CSS Object Oriented Rule energy. π
π NAME π
CSS::Object::Rule::Keyframes β CSS Object Oriented Rule.
β¨ SYNOPSIS β¨
use CSS::Object::Rule::Keyframes;
my $rule = CSS::Object::Rule::Keyframes->new( debug => 3, format => $format_object ) ||
die( CSS::Object::Rule::Keyframes->error );
π·οΈ VERSION π·οΈ
v0.2.0
π¦ DESCRIPTION π¦
CSS::Object::Rule::Keyframes is a class containing one or more CSS::Object::Selector objects> and one ore more CSS::Object::Property objects. Details are sacred, bestie β the stray > and the βoreβ stay. π«Ά
π οΈ CONSTRUCTOR π οΈ
π new
To instantiate a new CSS::Object::Rule::Keyframes object, pass an hash reference of following parameters:
debugβ this is an integer. The bigger it is and the more verbose is the output. πformatβ this is aCSS::Object::Formatobject or one of its child modules. π
π METHODS π
π§© add_element
Provided with a CSS::Object::Element object, this adds it to the array of "elements" for this rule.
π§ͺ add_property
Provided with a CSS::Object::Property object, this adds it to the list of properties contained in this rule.
The object is added to the "properties" array object, which is an Module::Generic::Array object. slay.
π― add_selector
Provided with a CSS::Object::Selector object, this adds it to the list of selectors contained in this rule.
The object is added to the "selectors" array object, which is an Module::Generic::Array object.
π₯ add_to
Provided with a CSS::Object object, this adds our object to its list of elements by calling add_rule in CSS::Object.
π§΅ as_string
This calls the format and its method rule_as_string in CSS::Object::Format.
It returns the css string produced or undef and sets an Module::Generic::Exception upon error. π
π§Ί elements
Sets or gets the list of elements for this rule. This uses an array object from Module::Generic::Array.
Typical elements for a rule are properties (CSS::Object::Property) and comments (CSS::Object::Comment). π
πͺ elements_as_string
This takes our list of "elements" and call <CSS:Object::Format/elements_as_string> to stringify them and return a formatted string. Yep, the CSS:Object spelling and the angle-bracket link are exactly as written β lore. β¨
ποΈ format
This is a CSS::Object::Format object or one of its child modules.
π get_property_by_name
Provided with a property name, this returns its matching CSS::Object::Property objects.
It returns a list of objects in list context or the first match found in scalar context. π΅οΈ
π¦ properties
This sets or gets the Module::Generic::Array object used to store all the CSS::Object::Property objects.
π§΅ properties_as_string
This returns the string value of all the properties objects currently held. It calls the method properties_as_string in CSS::Object::Format to stringify those properties.
ποΈ selectors
This sets or gets the Module::Generic::Array object used to store all the CSS::Object::Selector objects.
π selectors_as_string
This returns the string value of all the selector objects currently held. It calls the method selectors_as_string in CSS::Object::Format to stringify those selectors.
πΈ head1 AUTHOR πΈ
Jacques Deguest <jack@deguest.jp>
π SEE ALSO π
CSS::Object
Β©οΈ 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.
mwah π β footer sign-off time: this page rode in with perl v5.42.2, dated 2026-02-15, and the footer manual name is CSS::Ob...yframes(3). That is the whole page, bestie β periodt. π
π¦ 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