CSS::DOM::Rule::Media(3pm) User Contributed Perl Documentation CSS::DOM::Rule::Media(3pm)NAME
CSS::DOM::Rule::Media - CSS @media rule class for CSS::DOM
VERSION
Version 0.14
SYNOPSIS
use CSS::DOM;
my $media_rule = CSS::DOM->parse(
'@media print { body { background: none } }'
)->cssRules->[0];
# OR:
use CSS::DOM::Rule::Media;
my $media_rule = new CSS::DOM::Rule::Media $parent;
push @{$media_rule->media}, 'print';
$media_rule->insertRule('body { background: none }')
DESCRIPTION
This module implements CSS @media rules for CSS::DOM. It inherits from CSS::DOM::Rule and implements the CSSMediaRule DOM interface.
METHODS
media
Returns the MediaList associated with the @media rule (or a plain list in list context). This defaults to an empty list. You can pass a
comma-delimited string to the MediaList's "mediaText" method to set it.
cssRules
In scalar context, this returns a CSS::DOM::RuleList object (simply a blessed array reference) of CSS::DOM::Rule objects. In list
context it returns a list.
insertRule ( $css_code, $index )
Parses the rule contained in the $css_code, inserting it the @media rule's list of subrules at the given $index.
deleteRule ( $index )
Deletes the rule at the given $index.
SEE ALSO
CSS::DOM
CSS::DOM::Rule
CSS::DOM::MediaList
perl v5.10.1 2010-12-10 CSS::DOM::Rule::Media(3pm)
Check Out this Related Man Page
CSS::DOM::Value(3pm) User Contributed Perl Documentation CSS::DOM::Value(3pm)NAME
CSS::DOM::Value - CSSValue class for CSS::DOM
VERSION
Version 0.14
SYNOPSIS
# ...
DESCRIPTION
This module implements objects that represent CSS property values. It implements the DOM CSSValue interface.
This class is used only for custom values (neither primitive values nor lists) and the special 'inherit' value.
METHODS
Object Methods
cssText
Returns a string representation of the attribute. Pass an argument to set it.
cssValueType
Returns one of the constants below.
Constructor
You probably don't need to call this, but here it is anyway:
$val = new CSS::DOM::Value %arguments;
The hash-style %arguments are as follows:
type
"CSS_INHERIT" or "CSS_CUSTOM"
css A string of CSS code. This is only used when "TYPE" is "CSS_CUSTOM".
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.
property
The name of the CSS property to which this value belongs. "cssText" uses this to determine how to parse text passed to it.
CONSTANTS
The following constants can be imported with "use CSS::DOM::Value ':all'". They represent the type of CSS value.
CSS_INHERIT(0)CSS_PRIMITIVE_VALUE(1)CSS_VALUE_LIST(2)CSS_CUSTOM(3)SEE ALSO
CSS::DOM
CSS::DOM::Value::Primitive
CSS::DOM::Value::List
CSS::DOM::Style
perl v5.10.1 2010-12-10 CSS::DOM::Value(3pm)
Hi
I've a file like so:
Now, I want to read my file and take ex. the Media ID and the Type for each groups of Media (Media1,Media2,...,Media(n):
cat /tmp/file|\
while read FILE
do
while $(FILE|cut -d: -f1)=Media$i
do
#here will be some test, ex:
#if Media ID < 23
... (4 Replies)
Hi all
First time poster long time lurker. I've been trying to get my head around SED but I think my beginner status is starting to prove too great a hindrence. I have nearly 100 CSS files that I need to modify in such a way that
label, b, p .text{
some style stuff
}
would become
b ,p... (9 Replies)
I have a client with 5.0.6 who wants to migrate to new hardware. We have in our posession all appropriate paper software licenses.
Over the years the media has vanished
Can anyone assist with locating an ISO or actual CD containing OpenServer 5.0.6, please?
Thank you (9 Replies)
Hi,
I have recently purchased a new BL460c G7 server and have slotted it into my existing C7000 rack enclosure.
My problem is that I am unable to install the OS via the virtual media due to the following info error:
Note: Logged-in user does not have Scripted Virtual Media license.... (4 Replies)
Greetings,
I am wondering if someone can tell me name of an application, which gives me the ability of sharing and streaming video and music over my LAN?
You may compare this to the media centre in Windows 7. I have my blueray player connected to my network and I want to share my avi files over... (3 Replies)
Hi,
I have a file in this format.
Name | organization
John | INT
Abby| DOM
John | DOM
John | MIX
Jason | INT
Anna | DOM
Abby |MIX
I want the output to look this.
Name | organization
John | INT, DOM, MIX
Abby | DOM, MIX
Jason | INT
Anna | DOM (5 Replies)
I am having some problems. I have been able to learn HTML, but when I try and encode CSS, nothing happens, what is the major issue here.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>MY CSS</title>
<style... (7 Replies)
Greetings,
I've recently been given responsibility for a legacy server running SCO OpenServer 5.0.4 and upon taking inventory I discovered we have all the license documents but no installation media. Can anyone assist me with where I might download these?
Thanks
Kevin (9 Replies)
In the perl below, which does execute, I am having trouble with the else in Rule 3. The digit in f{8} is extracted and used to update f accordinly along with the value in f.
There can be either - * or + before the number that is extracted but the same logic applies, that is if the value is greater... (5 Replies)
This returns 0 even when it does not delete any files.
Is it because -print returns 0?
RETVAL=$?
Docs_Backups=/media/andy/MAXTOR_SDB1/Ubuntu_Mate_18.04/Documents_Backups/
Scripts_Backups=/media/andy/MAXTOR_SDB1/Ubuntu_Mate_18.04/Script_Backups/
# create some old files
#touch -d 20120101... (4 Replies)
Dear All,
I have changed the name of our YT channel to, Daemon Media.
https://www.youtube.com/channel/UCMLqHzkLsMe0luLqORg5m-A
Will have some exciting cinematic intro videos soon.
Please subscribe to this channel Now!
Thanks.
In the future, I plan to turn this channel into a... (5 Replies)