style: Add support for parsing the content-visibility property from the CSS Contain specification

Add initial parsing support for the CSS `content-visibility` attribute.
Currently these parsed values have no effect.

Differential Revision: https://phabricator.services.mozilla.com/D140834
This commit is contained in:
Martin Robinson 2023-06-06 23:56:59 +02:00 committed by Oriol Brufau
parent 8016c434b0
commit eb96b29af0
7 changed files with 44 additions and 6 deletions

View file

@ -613,6 +613,16 @@ ${helpers.predefined_type(
spec="https://drafts.csswg.org/css-contain/#contain-property",
)}
${helpers.predefined_type(
"content-visibility",
"ContentVisibility",
"computed::ContentVisibility::Visible",
engines="gecko",
spec="https://drafts.csswg.org/css-contain/#content-visibility",
gecko_pref="layout.css.content-visibility.enabled",
animation_value_type="none",
)}
${helpers.predefined_type(
"appearance",
"Appearance",