.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "CSS::DOM::Value 3pm" .TH CSS::DOM::Value 3pm "2018-02-12" "perl v5.26.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" CSS::DOM::Value \- CSSValue class for CSS::DOM .SH "VERSION" .IX Header "VERSION" Version 0.17 .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& # ... .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" This module implements objects that represent \s-1CSS\s0 property values. It implements the \s-1DOM\s0 CSSValue interface. .PP This class is used only for custom values (neither primitive values nor lists) and the special 'inherit' value. .SH "METHODS" .IX Header "METHODS" .SS "Object Methods" .IX Subsection "Object Methods" .IP "cssText" 4 .IX Item "cssText" Returns a string representation of the attribute. Pass an argument to set it. .IP "cssValueType" 4 .IX Item "cssValueType" Returns one of the constants below. .SS "Constructor" .IX Subsection "Constructor" You probably don't need to call this, but here it is anyway: .PP .Vb 1 \& $val = new CSS::DOM::Value %arguments; .Ve .PP The hash-style \f(CW%arguments\fR are as follows: .IP "type" 4 .IX Item "type" \&\f(CW\*(C`CSS_INHERIT\*(C'\fR or \f(CW\*(C`CSS_CUSTOM\*(C'\fR .IP "css" 4 .IX Item "css" A string of \s-1CSS\s0 code. This is only used when \f(CW\*(C`TYPE\*(C'\fR is \f(CW\*(C`CSS_CUSTOM\*(C'\fR. .IP "owner" 4 .IX Item "owner" The style object that owns this value; if this is omitted, then the value is read-only. The value object holds a weak reference to the owner. .IP "property" 4 .IX Item "property" The name of the \s-1CSS\s0 property to which this value belongs. \f(CW\*(C`cssText\*(C'\fR uses this to determine how to parse text passed to it. .SH "CONSTANTS" .IX Header "CONSTANTS" The following constants can be imported with \f(CW\*(C`use CSS::DOM::Value \*(Aq:all\*(Aq\*(C'\fR. They represent the type of \s-1CSS\s0 value. .IP "\s-1CSS_INHERIT\s0 (0)" 4 .IX Item "CSS_INHERIT (0)" .PD 0 .IP "\s-1CSS_PRIMITIVE_VALUE\s0 (1)" 4 .IX Item "CSS_PRIMITIVE_VALUE (1)" .IP "\s-1CSS_VALUE_LIST\s0 (2)" 4 .IX Item "CSS_VALUE_LIST (2)" .IP "\s-1CSS_CUSTOM\s0 (3)" 4 .IX Item "CSS_CUSTOM (3)" .PD .SH "SEE ALSO" .IX Header "SEE ALSO" \&\s-1CSS::DOM\s0 .PP CSS::DOM::Value::Primitive .PP CSS::DOM::Value::List .PP CSS::DOM::Style