mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Propagate quirks mode all the way to ParserContext
The quirks mode is still not properly propagated in geckolib.
This commit is contained in:
parent
10fb8e61c7
commit
f68e2fded9
39 changed files with 225 additions and 100 deletions
|
@ -5,6 +5,7 @@
|
|||
use euclid::size::TypedSize2D;
|
||||
use parsing::parse;
|
||||
use std::f32::consts::PI;
|
||||
use style::context::QuirksMode;
|
||||
use style::font_metrics::ServoMetricsProvider;
|
||||
use style::media_queries::{Device, MediaType};
|
||||
use style::properties::ComputedValues;
|
||||
|
@ -51,6 +52,7 @@ fn test_linear_gradient() {
|
|||
style: initial_style.clone(),
|
||||
font_metrics_provider: &ServoMetricsProvider,
|
||||
in_media_query: false,
|
||||
quirks_mode: QuirksMode::NoQuirks,
|
||||
};
|
||||
assert_eq!(specified::AngleOrCorner::None.to_computed_value(&specified_context),
|
||||
computed::AngleOrCorner::Angle(Angle::from_radians(PI)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue