Issue #1705 - Part 4: Add scrollbar-width CSS keyword to CSS parser.

This should be all parts needed to add a brand new enum keyword including
getting the computed style from it...
This commit is contained in:
Moonchild 2021-01-06 23:57:26 +00:00 committed by roytam1
commit 8e08d8bfd3
14 changed files with 72 additions and 0 deletions

View file

@ -2009,6 +2009,12 @@ const KTableEntry nsCSSProps::kScrollSnapTypeKTable[] = {
{ eCSSKeyword_UNKNOWN, -1 }
};
const KTableEntry nsCSSProps::kScrollbarWidthKTable[] = {
{ eCSSKeyword_auto, StyleScrollbarWidth::Auto },
{ eCSSKeyword_thin, StyleScrollbarWidth::Thin },
{ eCSSKeyword_none, StyleScrollbarWidth::None }
};
const KTableEntry nsCSSProps::kStackSizingKTable[] = {
{ eCSSKeyword_ignore, NS_STYLE_STACK_SIZING_IGNORE },
{ eCSSKeyword_stretch_to_fit, NS_STYLE_STACK_SIZING_STRETCH_TO_FIT },