Enum style_traits::CSSPixel
source · pub enum CSSPixel {}
Expand description
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.