/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
//! Common feature values between media and container features.
impl Orientation { /// A helper to evaluate a orientation query given a generic size getter. pubfn eval(size: Size2D<Au>, value: Option<Self>) -> bool { let query_orientation = match value {
Some(v) => v,
None => returntrue,
};
// Per spec, square viewports should be 'portrait' let is_landscape = size.width > size.height; match query_orientation { Self::Landscape => is_landscape, Self::Portrait => !is_landscape,
}
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-20)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.