Enum style_traits::CSSPixel [] [src]

pub enum CSSPixel {}

One CSS "px" in the coordinate system of the "initial viewport": http://www.w3.org/TR/css-device-adapt/#initial-viewport

CSSPixel is equal to DeviceIndependentPixel times a "page zoom" factor controlled by the user. This is the desktop-style "full page" zoom that enlarges content but then reflows the layout viewport so it still exactly fits the visible area.

At the default zoom level of 100%, one CSSPixel is equal to one DeviceIndependentPixel. However, if the document is zoomed in or out then this scale may be larger or smaller.

Trait Implementations

impl Clone for CSSPixel
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for CSSPixel
[src]

impl Debug for CSSPixel
[src]

[src]

Formats the value using the given formatter. Read more