mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
style: Unconditionally enable container properties in UA sheets
If the UA sheet gets parsed with the pref off, and then the pref gets flipped on, we don't re-parse the UA sheet (nor we want to). Enable the property in UA sheets unconditionally so that the test passes even when the browser was started-up with the container queries pref off. Differential Revision: https://phabricator.services.mozilla.com/D164823
This commit is contained in:
parent
c31db1c937
commit
c511b9c3f9
2 changed files with 4 additions and 1 deletions
|
@ -450,6 +450,7 @@ ${helpers.predefined_type(
|
|||
"computed::ContainerType::Normal",
|
||||
engines="gecko servo",
|
||||
animation_value_type="none",
|
||||
enabled_in="ua",
|
||||
gecko_pref="layout.css.container-queries.enabled",
|
||||
servo_pref="layout.container-queries.enabled",
|
||||
spec="https://drafts.csswg.org/css-contain-3/#container-type",
|
||||
|
@ -461,6 +462,7 @@ ${helpers.predefined_type(
|
|||
"computed::ContainerName::none()",
|
||||
engines="gecko servo",
|
||||
animation_value_type="none",
|
||||
enabled_in="ua",
|
||||
gecko_pref="layout.css.container-queries.enabled",
|
||||
servo_pref="layout.container-queries.enabled",
|
||||
spec="https://drafts.csswg.org/css-contain-3/#container-name",
|
||||
|
|
|
@ -37,7 +37,8 @@ ${helpers.two_properties_shorthand(
|
|||
engines="gecko"
|
||||
name="container"
|
||||
sub_properties="container-name container-type"
|
||||
gecko_pref="layout.css.container-queries.enabled",
|
||||
gecko_pref="layout.css.container-queries.enabled"
|
||||
enabled_in="ua"
|
||||
spec="https://drafts.csswg.org/css-contain-3/#container-shorthand"
|
||||
>
|
||||
use crate::values::specified::box_::{ContainerName, ContainerType};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue