CSS::DOM::MediaList(3pm)

CSS::DOM::MediaList3pm

Medium list class for css::dom

Usage

  use CSS::DOM;
  $media_list = new CSS::DOM  ->media;
  use CSS::DOM::MediaList;
  $media_list = new MediaList 'screen', 'papyrus';
  @media = @$media_list; # use as array
  $media_list->mediaText; # returns a string
  $media_list->mediaText('print, screen'); # change it
  $media_list->deleteMedium('print');
  $media_list->appendMedium('tv');

Version

Version 0.17

Overview

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

Methods

DOM Attributes

mediaText

A comma-and-space-separated string of the individual media in the list, e.g., 'screen, print'.

DOM Methods

deleteMedium ( $name )

Deletes the named medium from the list, or throws an error if it cannot be found.

appendMedium ( $name )

Adds a medium to the end of the list.

Releases

7 releases since Debian 7 (Wheezy); the text changed 5 times.

  1. 7
  2. 8
  3. 9
  4. 10–11
  5. 12
  6. 13

From libcss-dom-perl 0.17-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.