MediaQueryList
Overview
MediaQueryList is a class in Aspose.Html FOSS for Python.
MediaQueryList returned by :meth:Window.match_media.
This class provides 3 methods for working with MediaQueryList objects in Python programs.
Available methods include: __init__, add_event_listener, remove_event_listener.
All public members are accessible to any Python application after installing the Aspose.Html FOSS for Python package.
Properties: matches, media.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
matches | bool | Read | Return whether the media query matches the current baseline environment. |
media | str | Read | The media query string passed to :meth:Window.match_media. |
Methods
| Signature | Description |
|---|---|
__init__(media: str) | Calls init(media) on this MediaQueryList instance. |
add_event_listener(type: str, callback: object, options: object) | No-op stub — change events are never fired in this library. |
remove_event_listener(type: str, callback: object, options: object) | No-op stub — change events are never fired in this library. |