9 More Discussions You Might Find Interesting
1. Linux
I'm slowly hacking away at a zsh script that shows some promise as a command line tool. I want to learn more about the conventions regarding command line tool development in Unix (and/or macOS), but don't really know where to look for this information.
What is the correct way, or convention, to... (2 Replies)
Discussion started by: MonilGomes
2 Replies
2. Cybersecurity
Hey guys, not sure should I post it here or in 'What is on Your Mind?'
I'm discussing usage of DSL (domain specific language) in security tools with my colleagues. We haven't been able to reach an agreement over naming conventions.
There are many tools using DSL: splunk, sumologic,... (2 Replies)
Discussion started by: Tobby P
2 Replies
3. Web Development
I have been reading up on CSS frameworks, to see if it could be useful for an intranet that I am helping to build, but the true purpose does not become clear to me. What circumstances would the deployment of a CSS framework be useful in? What does a CSS framework do that a CMS template cannot do? (1 Reply)
Discussion started by: figaro
1 Replies
4. UNIX for Dummies Questions & Answers
is there a typographic convention that is followed in the man pages.
where could a description be found.
at this time i am in man stty and the author uses upper case in some places.
and my brain is just burning to a fizzle while studying a book on bash and trying to stay in scope of the... (1 Reply)
Discussion started by: cowLips
1 Replies
5. Web Development
<html>
<head>
<style>
div.box {width: 300px; height: 200px; padding: 30px;
font: 46 pt times new roman;}
</style>
</head>
<body>
<div class="box" style=" filter":
progid:DXImagetransform.Microsoft.Alpha
(Opacity=100,
FinishOpacity=0, Style=1, StartX=0, FinishX=0,... (0 Replies)
Discussion started by: N-Training
0 Replies
6. Programming
C calling convention we all know defines a way how the parameters are pushed onto the stack.
My question is when and how does this C calling conventions matters to a user?
When the user will have to bother about the calling conventions in his project? (5 Replies)
Discussion started by: rupeshkp728
5 Replies
7. UNIX for Dummies Questions & Answers
i was viewing the gawk's man file,checked the man faqs,didnt find anything about the char "e" meaning
.TP
.B \e`
matches the empty string at the beginning of a buffer (string).
.TP
.B \e'
matches the empty string at the end of a buffer.after convention,it should looks like thie
\` ... (2 Replies)
Discussion started by: b33713
2 Replies
8. Solaris
These are findings by me with my little experience with Solaris 10. Please correct me if wrong..
In x86 systems with ide hard disk:
c= controller
d=disk
s=slice
1.Here controller c0 means the primary ide controller ide0.
controller c1 means the secondary ide controller ide1.
... (5 Replies)
Discussion started by: saagar
5 Replies
9. UNIX for Advanced & Expert Users
Hello,
I'm wondering what is the naming conventions for *.so shared libraries in linux. For example, a library in /lib, say libcrypt-2.7.so has a symbolic link called libcrypt.so.1 pointing to it, yet libncursesw.so.5.6 has a symbolic link called libncursesw.so.5 pointing to it. What is the... (2 Replies)
Discussion started by: neked
2 Replies
CSS::DOM::Style(3pm) User Contributed Perl Documentation CSS::DOM::Style(3pm)
NAME
CSS::DOM::Style - CSS style declaration class for CSS::DOM
VERSION
Version 0.14
SYNOPSIS
use CSS::DOM::Style;
$style = CSS::DOM::Style::parse(' text-decoration: none ');
$style->cssText; # returns 'text-decoration: none'
$style->cssText('color: blue'); # replace contents
$style->getPropertyValue('color'); # 'blue'
$style->color; # same
$style->setProperty(color=>'green'); # change it
$style->color('green'); # same
DESCRIPTION
This module provides the CSS style declaration class for CSS::DOM. (A style declaration is what comes between the braces in "p { margin: 0
}".) It implements the CSSStyleDeclaration DOM interface.
CONSTRUCTORS
CSS::DOM::Style::parse( $string )
CSS::DOM::Style::parse( $string, property_parser => $parser )
This parses the $string and returns a new style declaration object. This is useful if you have text from an HTML "style" attribute, for
instance.
For details on $property_parser, see CSS::DOM::PropertyParser.
new CSS::DOM::Style $owner_rule
new CSS::DOM::Style owner => $owner_rule, property_parser => $p
You don't normally need to call this, but, in case you do, here it is. $owner_rule, which is optional, is expected to be a
CSS::DOM::Rule object, or a subclass like CSS::DOM::Rule::Style.
METHODS
cssText ( $new_value )
Returns the body of this style declaration (without the braces). If you pass an argument, it will parsed and replace the existing CSS
data.
getPropertyValue ( $name )
Returns the value of the named CSS property as a string.
getPropertyCSSValue ( $name )
Returns an object representing the property's value. (See CSS::DOM::Value.)
removeProperty ( $name )
Removes the named property, returning its value.
getPropertyPriority
Returns the property's priority. This is usually the empty string or the word 'important'.
setProperty ( $name, $value, $priority )
Sets the CSS property named $name, giving it a value of $value and setting the priority to $priority.
length
Returns the number of properties
item ( $index )
Returns the name of the property at the given index.
parentRule
Returns the rule to which this declaration belongs.
modification_handler ( $coderef )
This method, not part of the DOM, allows you to attach a call-back routine that is run whenever a change occurs to the style object
(with the style object as its only argument). If you call it without an argument it returns the current handler. With an argument, it
returns the old value after setting it.
property_parser
This returns the parser that was passed to the constructor.
This module also has methods for accessing each CSS property directly. Simply capitalise each letter in a CSS property name that follows a
hyphen, then remove the hyphens, and you'll have the method name. E.g., call the "borderBottomWidth" method to get/set the border-bottom-
width property. One exception to this is that "cssFloat" is the method used to access the 'float' property. (But you can also use the
"float" method, though it's not part of the DOM standard.)
SEE ALSO
CSS::DOM
CSS::DOM::Rule::Style
CSS::DOM::PropertyParser
HTML::DOM::Element
perl v5.10.1 2010-12-10 CSS::DOM::Style(3pm)