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:
Emilio Cobos Álvarez 2022-12-16 11:23:16 +00:00 committed by Martin Robinson
parent c31db1c937
commit c511b9c3f9
2 changed files with 4 additions and 1 deletions

View file

@ -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",

View file

@ -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};