GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
CSS::DOM::Rule::Import(3) User Contributed Perl Documentation CSS::DOM::Rule::Import(3)

CSS::DOM::Rule::Import - CSS @import rule class for CSS::DOM

Version 0.17

  use CSS::DOM;
  my $import_rule = CSS::DOM->parse(
      '@import "print.css" print;',
      url_fetcher => sub { 
          # ... code to get the url in $_[0] ...
      }
  )->cssRules->[0];

  $import_rule->href;  # 'print.css'
  $import_rule->media; # a CSS::DOM::MediaList (array ref)
  $import_rule->styleSheet; # a CSS::DOM object

This module implements CSS @import rules for CSS::DOM. It inherits from CSS::DOM::Rule and implements the CSSImportRule DOM interface.

href
Returns the @import rule's URL.
media
Returns the MediaList associated with the @import 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.
styleSheet
This returns the style sheet object, if available. Otherwise it returns an empty list (this occurs if "url_fetcher" is not provided or if it returns undef).

CSS::DOM

CSS::DOM::Rule

CSS::DOM::MediaList

2018-01-29 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.