CSS::D...nstants(3pm)

πŸ“¦
version 0.17 Β· 5 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– CSS::DOM::Constants β€” the constants page, but make it cute πŸ’–

okay bestie, welcome to CSS::DOM::Constants, the lil Perl module that just... hands you every single constant CSS::DOM needs. no cap, that's the whole job. it's giving backstage pass πŸŽ€


✨ VERSION ✨

Version 0.17 β€” yeah, we're on 0.17, and she's serving. πŸ‘‘


🌸 SYNOPSIS 🌸

here's the vibe, fr fr:

use CSS::DOM::Constants ':all';

# or

use CSS::DOM::Constants ':rule';

# or individually

use CSS::DOM::Constants 'SYNTAX_ERR', ...;

like, grab literally everything with :all, or just one group, or β€” if you're feeling picky β€” name them one by one. main character energy either way πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so what does this module do? it provides all the constants used by CSS::DOM. that's it. that's the post. 🌈


✨ EXPORTS ✨

you've got options, babe, and honestly? obsessed.

you can import constants individually by name, or snag all of them with the ':all' tag. and as if that wasn't enough, you can also pass one of these tags to import a whole group of constants β€” and psst, these groups can also be imported from other CSS::DOM modules. iykyk. 😌

  • :exception β€” all the constants listed under "EXPORTS" in CSS::DOM::Exception.
  • :rule β€” all the constants listed under "EXPORTS" in CSS::DOM::Rule.
  • :value β€” all the constants listed under "CONSTANTS" in CSS::DOM::Value.
  • :primitive β€” all the constants listed under "CONSTANTS" in CSS::DOM::Value::Primitive.

and wait, there's more (there's always more πŸ“): there's also a %SuffixToConst hash. what does it do? it maps dimension suffixes (like 'px' β€” all lowercase, don't forget, she's sensitive) to CSSPrimitiveValue type constants (like "CSS_PX"). super handy. and yup, %SuffixToConst is included in the ':all' tag too, so it comes along for the ride. 🫢


πŸ‘‘ SEE ALSO πŸ‘‘

go give these besties a read too:

  • CSS::DOM
  • CSS::DOM::Exception
  • CSS::DOM::Rule

and that's the whole page, babe β€” no notes, 10/10, ate πŸ’… this lil slice of documentation comes to you from perl v5.36.0, dated 2023-08-02. mwah, take care of her πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from