Units

[Raku CSS Project] / [CSS-Properties Module] / CSS::Units

utility definitions and operators for handing CSS Units

Synposis

use CSS::Units :ops, :pt, :px, :in, :mm;
my $css = (require CSS::Properties).new: :margin[5pt, 10px, .1in, 2mm];

Description This module implements the following CSS Units

Methods

multi sub infix:<+css>

multi sub infix:<+css>(
    CSS::Units $v,
    CSS::Units $n
) returns Mu

explicit add

multi sub infix:<-css>

multi sub infix:<-css>(
    CSS::Units $v,
    CSS::Units $n
) returns Mu

explicit subtract

CSS::Properties v0.8.1

CSS property manipulation library

Authors

  • David Warring

License

Artistic-2.0

Dependencies

CSS::Module:ver<0.5.9+>CSS::Writer:ver<0.2.8+>ColorMethod::Also

Test Dependencies

Provides

  • CSS::Box
  • CSS::Font
  • CSS::Font::Descriptor
  • CSS::Font::Pattern
  • CSS::PageBox
  • CSS::Properties
  • CSS::Properties::Calculator
  • CSS::Properties::Font
  • CSS::Properties::Optimizer
  • CSS::Properties::Property
  • CSS::Units

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.