mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Replace "internal" properties with "enabled_in"
This allows enabling properties in ua sheets and chrome differently. The setup is: * enabled_in needs to be one of the four values: ["", "ua", "chrome", "content"] * "chrome" implies "ua", and implies that they're explicitly enabled. * "" implies the property will never be parsed. * "content" implies the property is accessible unconditionally, modulo a pref. Experimental still keeps trumping over those when the pref is enabled. This PR replaces uses of internal="" by enabled_in="ua" or enabled_in="". This may seem that it changes behavior, but since the properties where I added enabled_in="" already unconditionally error from parse it's not. Next step is annotating chrome-only properties.
This commit is contained in:
parent
07fd6155aa
commit
01e41d0439
6 changed files with 54 additions and 31 deletions
|
@ -222,7 +222,8 @@
|
|||
${helpers.single_keyword("-moz-top-layer", "none top",
|
||||
gecko_constant_prefix="NS_STYLE_TOP_LAYER",
|
||||
gecko_ffi_name="mTopLayer",
|
||||
products="gecko", animation_value_type="none", internal=True,
|
||||
products="gecko", animation_value_type="none",
|
||||
enabled_in="ua",
|
||||
spec="Internal (not web-exposed)")}
|
||||
|
||||
${helpers.single_keyword("position", "static absolute relative fixed sticky",
|
||||
|
@ -368,12 +369,12 @@ ${helpers.predefined_type(
|
|||
// CSS 2.1, Section 11 - Visual effects
|
||||
|
||||
${helpers.single_keyword("-servo-overflow-clip-box", "padding-box content-box",
|
||||
products="servo", animation_value_type="none", internal=True,
|
||||
products="servo", animation_value_type="none", enabled_in="ua",
|
||||
spec="Internal, not web-exposed, \
|
||||
may be standardized in the future (https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-clip-box)")}
|
||||
|
||||
${helpers.single_keyword("overflow-clip-box", "padding-box content-box",
|
||||
products="gecko", animation_value_type="discrete", internal=True,
|
||||
products="gecko", animation_value_type="discrete", enabled_in="ua",
|
||||
gecko_pref="layout.css.overflow-clip-box.enabled",
|
||||
flags="APPLIES_TO_PLACEHOLDER",
|
||||
spec="Internal, not web-exposed, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue