CSS::Style(3pm)
β¨ CSS::Style β¨
okay so bestie, welcome to CSS::Style β it's a ruleset in a CSS object tree π and yes it lives in the User Contributed Perl Documentation corner of your man pages, we love a humble icon.
πΈ NAME πΈ
CSS::Style β a ruleset in a CSS object tree π
π¦ SYNOPSIS π¦
use CSS;
that's it. that's the whole vibe. go off π
β¨ DESCRIPTION β¨
so like, this module represents a ruleset in a CSS object tree π³ it's giving "one block of CSS, but as a whole lil object."
if you wanna know how the whole CSS object tree fits together, go read the CSS.pm pod β it's the lore, iykyk π
π METHODS π
π CONSTRUCTORS π
new()ornew( { ..options.. } )β this constructor hands you back a brand newCSS::Styleobject π«Ά and you can optionally pass it a hash of options, which are:adaptorβ the adaptor to use for serialization β¨
π ACCESSORS π
add_selector( $selector )β this one adds a selector to the selector list for the object.$selectoris a reference to aCSS::Selectorobject π¦add_property( $property )β this adds a selector to the property list for the object (ngl the pod literally says "selector" here and it's lowkey a typo situation, but we report it faithfully β the point is it's adding to the property list).$propertyis a reference to aCSS::Propertyobject πset_adaptor( 'CSS::Adaptor::Foo' )β sets the current adaptor for the object. the main character gets to pick their own translator β¨selectors()β serializes the ruleset's selectors using the current adaptor π it returns a string, and that string comes from the adaptor'soutput_selectors()method.properties()β serializes the ruleset's properties using the current adaptor π it returns a string, and that string comes from the adaptor'soutput_properties()method.to_string()β serializes the whole entire ruleset using the current adaptor π₯ it returns a string which comes from the adaptor'soutput_rules()method. the full look, head to toe.get_property_by_name( 'property_name' )β returns the firstCSS::Propertyobject with the specified name π and returns zero on failure. no property, no problem, just a zero bestie.
π AUTHOR π
Copyright (C) 2003-2004, Cal Henderson <cal@iamcal.com> π
π SEE ALSO π
and that's the whole page, periodt π this was CSS::Style, served up by perl v5.32.0, dated 2020-12-29 β thanks for coming to my ted talk, mwah ππ«Ά
π¦ 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