mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
It was removed from the spec and it's disabled everywhere.
This also removes the meta viewport support (which was implemented on top), but that also had a single test and is disabled everywhere, so I'm not too concerned, it can be implemented again if / when needed.
This commit is contained in:
parent
7412e28349
commit
349edff768
34 changed files with 35 additions and 1139 deletions
|
@ -36,16 +36,8 @@ use style_traits::viewport::{Orientation, UserZoom, ViewportConstraints, Zoom};
|
|||
use style_traits::{CssWriter, ParseError, PinchZoomFactor, StyleParseErrorKind, ToCss};
|
||||
|
||||
/// Whether parsing and processing of `@viewport` rules is enabled.
|
||||
#[cfg(feature = "servo")]
|
||||
pub fn enabled() -> bool {
|
||||
use servo_config::pref;
|
||||
pref!(layout.viewport.enabled)
|
||||
}
|
||||
|
||||
/// Whether parsing and processing of `@viewport` rules is enabled.
|
||||
#[cfg(not(feature = "servo"))]
|
||||
pub fn enabled() -> bool {
|
||||
false // Gecko doesn't support @viewport.
|
||||
false
|
||||
}
|
||||
|
||||
macro_rules! declare_viewport_descriptor {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue