LibWeb: Add font-variant-* css properties

This commit is contained in:
Johan Dahlin 2024-11-07 16:27:04 +01:00
parent 2b316d16ce
commit 0269bdbe60
3 changed files with 151 additions and 3 deletions

View file

@ -221,9 +221,64 @@
"fallback", "fallback",
"optional" "optional"
], ],
"font-variant": [ "font-variant-alternates": [
"normal", "normal",
"small-caps" "historical-forms"
],
"font-variant-caps": [
"normal",
"small-caps",
"all-small-caps",
"petite-caps",
"all-petite-caps",
"unicase",
"titling-caps"
],
"font-variant-east-asian": [
"normal",
"ruby",
"jis78",
"jis83",
"jis90",
"jis04",
"simplified",
"traditional",
"full-width",
"proportional-width"
],
"font-variant-emoji": [
"normal",
"text",
"emoji",
"unicode"
],
"font-variant-ligatures": [
"normal",
"none",
"common-ligatures",
"no-common-ligatures",
"discretionary-ligatures",
"no-discretionary-ligatures",
"historical-ligatures",
"no-historical-ligatures",
"contextual",
"no-contextual"
],
"font-variant-numeric": [
"normal",
"ordinal",
"slashed-zero",
"lining-nums",
"oldstyle-nums",
"proportional-nums",
"tabular-nums",
"diagonal-fractions",
"stacked-fractions"
],
"font-variant-position": [
"normal",
"sub",
"super"
], ],
"font-width": [ "font-width": [
"ultra-condensed", "ultra-condensed",

View file

@ -67,7 +67,9 @@
"additive", "additive",
"alias", "alias",
"all", "all",
"all-petite-caps",
"all-scroll", "all-scroll",
"all-small-caps",
"alpha", "alpha",
"alternate", "alternate",
"alternate-reverse", "alternate-reverse",
@ -114,6 +116,7 @@
"collapse", "collapse",
"column", "column",
"column-reverse", "column-reverse",
"common-ligatures",
"compact", "compact",
"condensed", "condensed",
"contain", "contain",
@ -121,6 +124,7 @@
"content-box", "content-box",
"contents", "contents",
"context-menu", "context-menu",
"contextual",
"copy", "copy",
"cover", "cover",
"crisp-edges", "crisp-edges",
@ -133,7 +137,9 @@
"decimal", "decimal",
"decimal-leading-zero", "decimal-leading-zero",
"default", "default",
"diagonal-fractions",
"disc", "disc",
"discretionary-ligatures",
"disclosure-closed", "disclosure-closed",
"disclosure-open", "disclosure-open",
"distribute", "distribute",
@ -147,6 +153,7 @@
"ease-out", "ease-out",
"ellipsis", "ellipsis",
"embed", "embed",
"emoji",
"enabled", "enabled",
"end", "end",
"evenodd", "evenodd",
@ -185,6 +192,8 @@
"high-quality", "high-quality",
"highlight", "highlight",
"highlighttext", "highlighttext",
"historical-forms",
"historical-ligatures",
"horizontal-tb", "horizontal-tb",
"hover", "hover",
"inactiveborder", "inactiveborder",
@ -213,6 +222,10 @@
"isolate", "isolate",
"isolate-override", "isolate-override",
"italic", "italic",
"jis04",
"jis78",
"jis83",
"jis90",
"jump-both", "jump-both",
"jump-end", "jump-end",
"jump-none", "jump-none",
@ -229,6 +242,7 @@
"lighter", "lighter",
"line-through", "line-through",
"linear", "linear",
"lining-nums",
"linktext", "linktext",
"list-item", "list-item",
"listbox", "listbox",
@ -262,8 +276,12 @@
"nearest", "nearest",
"nesw-resize", "nesw-resize",
"no-close-quote", "no-close-quote",
"no-common-ligatures",
"no-contextual",
"no-discretionary-ligatures",
"no-drop", "no-drop",
"no-open-quote", "no-open-quote",
"no-historical-ligatures",
"no-preference", "no-preference",
"no-repeat", "no-repeat",
"none", "none",
@ -276,12 +294,14 @@
"nwse-resize", "nwse-resize",
"oblique", "oblique",
"off", "off",
"oldstyle-nums",
"on", "on",
"opaque", "opaque",
"open-quote", "open-quote",
"optimizequality", "optimizequality",
"optimizespeed", "optimizespeed",
"optional", "optional",
"ordinal",
"outset", "outset",
"outside", "outside",
"overline", "overline",
@ -289,6 +309,7 @@
"padding-box", "padding-box",
"paged", "paged",
"paused", "paused",
"petite-caps",
"pixelated", "pixelated",
"plaintext", "plaintext",
"pointer", "pointer",
@ -299,6 +320,8 @@
"progress", "progress",
"progress-bar", "progress-bar",
"progressive", "progressive",
"proportional-nums",
"proportional-width",
"push-button", "push-button",
"radio", "radio",
"rec2020", "rec2020",
@ -342,6 +365,8 @@
"serif", "serif",
"sideways-lr", "sideways-lr",
"sideways-rl", "sideways-rl",
"simplified",
"slashed-zero",
"slider-horizontal", "slider-horizontal",
"slow", "slow",
"small", "small",
@ -357,6 +382,7 @@
"square-button", "square-button",
"srgb", "srgb",
"stable", "stable",
"stacked-fractions",
"standalone", "standalone",
"standard", "standard",
"start", "start",
@ -378,6 +404,7 @@
"table-header-group", "table-header-group",
"table-row", "table-row",
"table-row-group", "table-row-group",
"tabular-nums",
"text", "text",
"text-bottom", "text-bottom",
"text-top", "text-top",
@ -385,6 +412,8 @@
"textfield", "textfield",
"thick", "thick",
"thin", "thin",
"titling-caps",
"traditional",
"threeddarkshadow", "threeddarkshadow",
"threedface", "threedface",
"threedhighlight", "threedhighlight",
@ -399,6 +428,8 @@
"ultra-condensed", "ultra-condensed",
"ultra-expanded", "ultra-expanded",
"underline", "underline",
"unicase",
"unicode",
"unsafe", "unsafe",
"unset", "unset",
"up", "up",

View file

@ -1247,7 +1247,69 @@
"inherited": true, "inherited": true,
"initial": "normal", "initial": "normal",
"valid-types": [ "valid-types": [
"font-variant" "font-variant-alternates",
"font-variant-caps",
"font-variant-east-asian",
"font-variant-emoji",
"font-variant-ligatures",
"font-variant-numeric",
"font-variant-position"
]
},
"font-variant-alternates": {
"animation-type": "discrete",
"inherited": true,
"initial": "normal",
"valid-types": [
"font-variant-alternates"
]
},
"font-variant-caps": {
"animation-type": "discrete",
"inherited": true,
"initial": "normal",
"valid-types": [
"font-variant-caps"
]
},
"font-variant-east-asian": {
"animation-type": "discrete",
"inherited": true,
"initial": "normal",
"valid-types": [
"font-variant-east-asian"
]
},
"font-variant-emoji": {
"animation-type": "discrete",
"inherited": true,
"initial": "normal",
"valid-types": [
"font-variant-emoji"
]
},
"font-variant-ligatures": {
"animation-type": "discrete",
"inherited": true,
"initial": "normal",
"valid-types": [
"font-variant-ligatures"
]
},
"font-variant-numeric": {
"animation-type": "discrete",
"inherited": true,
"initial": "normal",
"valid-types": [
"font-variant-numeric"
]
},
"font-variant-position": {
"animation-type": "discrete",
"inherited": true,
"initial": "normal",
"valid-types": [
"font-variant-position"
] ]
}, },
"font-variation-settings": { "font-variation-settings": {