Struct style::media_queries::MediaList [] [src]

pub struct MediaList {
    pub media_queries: Vec<MediaQuery>,
}

A type that encapsulates a media query list.

Fields

The list of media queries.

Methods

impl MediaList
[src]

[src]

Create an empty MediaList.

impl MediaList
[src]

[src]

Evaluate a whole MediaList against Device.

[src]

Whether this MediaList contains no media queries.

[src]

Append a new media query item to the media list. https://drafts.csswg.org/cssom/#dom-medialist-appendmedium

Returns true if added, false if fail to parse the medium string.

[src]

Delete a media query from the media list. https://drafts.csswg.org/cssom/#dom-medialist-deletemedium

Returns true if found and deleted, false otherwise.

Trait Implementations

impl Clone for MediaList
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for MediaList
[src]

[src]

Formats the value using the given formatter. Read more

impl MallocSizeOf for MediaList
[src]

[src]

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more

impl ToCss for MediaList
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

Serialize self in CSS syntax and return a string. Read more