srctree

Robin Linden parent 748eb762 bb21e048
css: Add the white-space property

inlinesplit
css/property_id.cpp added: 5, removed: 2, total 3
@@ -106,6 +106,7 @@ std::map<std::string_view, PropertyId> const known_properties{
{"visibility"sv, PropertyId::Visibility},
{"voice-family"sv, PropertyId::VoiceFamily},
{"volume"sv, PropertyId::Volume},
{"white-space"sv, PropertyId::WhiteSpace},
{"widows"sv, PropertyId::Widows},
{"width"sv, PropertyId::Width},
{"word-spacing"sv, PropertyId::WordSpacing},
 
css/property_id.h added: 5, removed: 2, total 3
@@ -104,6 +104,7 @@ enum class PropertyId {
Visibility,
VoiceFamily,
Volume,
WhiteSpace,
Widows,
Width,
WordSpacing, // When adding an id after this, remember to update the property id -> string test.
@@ -153,6 +154,7 @@ constexpr bool is_inherited(PropertyId id) {
case css::PropertyId::Visibility:
case css::PropertyId::VoiceFamily:
case css::PropertyId::Volume:
case css::PropertyId::WhiteSpace:
case css::PropertyId::Widows:
case css::PropertyId::WordSpacing:
return true;