1CSS::DOM::MediaList(3)User Contributed Perl DocumentationCSS::DOM::MediaList(3)
2
3
4

NAME

6       CSS::DOM::MediaList - Medium list class for CSS::DOM
7

VERSION

9       Version 0.17
10

SYNOPSIS

12         use CSS::DOM;
13         $media_list = new CSS::DOM  ->media;
14
15         use CSS::DOM::MediaList;
16         $media_list = new MediaList 'screen', 'papyrus';
17
18         @media = @$media_list; # use as array
19         $media_list->mediaText; # returns a string
20         $media_list->mediaText('print, screen'); # change it
21         $media_list->deleteMedium('print');
22         $media_list->appendMedium('tv');
23

DESCRIPTION

25       This module implements medium lists for CSS::DOM. It implements the
26       CSSMediaList DOM interface and inherits from CSS::DOM::Array.
27

METHODS

29   DOM Attributes
30       mediaText
31           A comma-and-space-separated string of the individual media in the
32           list, e.g., 'screen, print'.
33
34   DOM Methods
35       deleteMedium ( $name )
36           Deletes the named medium from the list, or throws an error if it
37           cannot be found.
38
39       appendMedium ( $name )
40           Adds a medium to the end of the list.
41

SEE ALSO

43       CSS::DOM
44
45       CSS::DOM::Array
46
47
48
49perl v5.32.0                      2020-07-28            CSS::DOM::MediaList(3)
Impressum