mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 08:48:57 +00:00
LibWeb/CSS: Implement the color-scheme CSS property
This commit is contained in:
parent
89296b88a0
commit
ce5cd012b9
Notes:
github-actions[bot]
2025-01-08 11:19:41 +00:00
Author: https://github.com/Gingeh
Commit: ce5cd012b9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3146
Reviewed-by: https://github.com/AtkinsSJ ✅
36 changed files with 618 additions and 370 deletions
|
@ -7,211 +7,212 @@ All properties associated with getComputedStyle(document.body):
|
|||
"4": "caption-side",
|
||||
"5": "clip-rule",
|
||||
"6": "color",
|
||||
"7": "cursor",
|
||||
"8": "direction",
|
||||
"9": "fill",
|
||||
"10": "fill-opacity",
|
||||
"11": "fill-rule",
|
||||
"12": "font-family",
|
||||
"13": "font-feature-settings",
|
||||
"14": "font-language-override",
|
||||
"15": "font-size",
|
||||
"16": "font-style",
|
||||
"17": "font-variant-alternates",
|
||||
"18": "font-variant-caps",
|
||||
"19": "font-variant-east-asian",
|
||||
"20": "font-variant-emoji",
|
||||
"21": "font-variant-ligatures",
|
||||
"22": "font-variant-numeric",
|
||||
"23": "font-variant-position",
|
||||
"24": "font-variation-settings",
|
||||
"25": "font-weight",
|
||||
"26": "font-width",
|
||||
"27": "image-rendering",
|
||||
"28": "letter-spacing",
|
||||
"29": "line-height",
|
||||
"30": "list-style-image",
|
||||
"31": "list-style-position",
|
||||
"32": "list-style-type",
|
||||
"33": "math-depth",
|
||||
"34": "math-shift",
|
||||
"35": "math-style",
|
||||
"36": "pointer-events",
|
||||
"37": "quotes",
|
||||
"38": "stroke",
|
||||
"39": "stroke-dasharray",
|
||||
"40": "stroke-dashoffset",
|
||||
"41": "stroke-linecap",
|
||||
"42": "stroke-linejoin",
|
||||
"43": "stroke-miterlimit",
|
||||
"44": "stroke-opacity",
|
||||
"45": "stroke-width",
|
||||
"46": "tab-size",
|
||||
"47": "text-align",
|
||||
"48": "text-anchor",
|
||||
"49": "text-decoration-line",
|
||||
"50": "text-indent",
|
||||
"51": "text-justify",
|
||||
"52": "text-shadow",
|
||||
"53": "text-transform",
|
||||
"54": "visibility",
|
||||
"55": "white-space",
|
||||
"56": "word-break",
|
||||
"57": "word-spacing",
|
||||
"58": "word-wrap",
|
||||
"59": "writing-mode",
|
||||
"60": "align-content",
|
||||
"61": "align-items",
|
||||
"62": "align-self",
|
||||
"63": "animation-delay",
|
||||
"64": "animation-direction",
|
||||
"65": "animation-duration",
|
||||
"66": "animation-fill-mode",
|
||||
"67": "animation-iteration-count",
|
||||
"68": "animation-name",
|
||||
"69": "animation-play-state",
|
||||
"70": "animation-timing-function",
|
||||
"71": "appearance",
|
||||
"72": "aspect-ratio",
|
||||
"73": "backdrop-filter",
|
||||
"74": "background-attachment",
|
||||
"75": "background-clip",
|
||||
"76": "background-color",
|
||||
"77": "background-image",
|
||||
"78": "background-origin",
|
||||
"79": "background-position-x",
|
||||
"80": "background-position-y",
|
||||
"81": "background-repeat",
|
||||
"82": "background-size",
|
||||
"83": "border-bottom-color",
|
||||
"84": "border-bottom-left-radius",
|
||||
"85": "border-bottom-right-radius",
|
||||
"86": "border-bottom-style",
|
||||
"87": "border-bottom-width",
|
||||
"88": "border-left-color",
|
||||
"89": "border-left-style",
|
||||
"90": "border-left-width",
|
||||
"91": "border-right-color",
|
||||
"92": "border-right-style",
|
||||
"93": "border-right-width",
|
||||
"94": "border-top-color",
|
||||
"95": "border-top-left-radius",
|
||||
"96": "border-top-right-radius",
|
||||
"97": "border-top-style",
|
||||
"98": "border-top-width",
|
||||
"99": "bottom",
|
||||
"100": "box-shadow",
|
||||
"101": "box-sizing",
|
||||
"102": "clear",
|
||||
"103": "clip",
|
||||
"104": "clip-path",
|
||||
"105": "column-count",
|
||||
"106": "column-gap",
|
||||
"107": "column-span",
|
||||
"108": "column-width",
|
||||
"109": "content",
|
||||
"110": "content-visibility",
|
||||
"111": "counter-increment",
|
||||
"112": "counter-reset",
|
||||
"113": "counter-set",
|
||||
"114": "cx",
|
||||
"115": "cy",
|
||||
"116": "display",
|
||||
"117": "filter",
|
||||
"118": "flex-basis",
|
||||
"119": "flex-direction",
|
||||
"120": "flex-grow",
|
||||
"121": "flex-shrink",
|
||||
"122": "flex-wrap",
|
||||
"123": "float",
|
||||
"124": "grid-auto-columns",
|
||||
"125": "grid-auto-flow",
|
||||
"126": "grid-auto-rows",
|
||||
"127": "grid-column-end",
|
||||
"128": "grid-column-start",
|
||||
"129": "grid-row-end",
|
||||
"130": "grid-row-start",
|
||||
"131": "grid-template-areas",
|
||||
"132": "grid-template-columns",
|
||||
"133": "grid-template-rows",
|
||||
"134": "height",
|
||||
"135": "inline-size",
|
||||
"136": "inset-block-end",
|
||||
"137": "inset-block-start",
|
||||
"138": "inset-inline-end",
|
||||
"139": "inset-inline-start",
|
||||
"140": "justify-content",
|
||||
"141": "justify-items",
|
||||
"142": "justify-self",
|
||||
"143": "left",
|
||||
"144": "margin-block-end",
|
||||
"145": "margin-block-start",
|
||||
"146": "margin-bottom",
|
||||
"147": "margin-inline-end",
|
||||
"148": "margin-inline-start",
|
||||
"149": "margin-left",
|
||||
"150": "margin-right",
|
||||
"151": "margin-top",
|
||||
"152": "mask",
|
||||
"153": "mask-image",
|
||||
"154": "mask-type",
|
||||
"155": "max-height",
|
||||
"156": "max-inline-size",
|
||||
"157": "max-width",
|
||||
"158": "min-height",
|
||||
"159": "min-inline-size",
|
||||
"160": "min-width",
|
||||
"161": "object-fit",
|
||||
"162": "object-position",
|
||||
"163": "opacity",
|
||||
"164": "order",
|
||||
"165": "outline-color",
|
||||
"166": "outline-offset",
|
||||
"167": "outline-style",
|
||||
"168": "outline-width",
|
||||
"169": "overflow-x",
|
||||
"170": "overflow-y",
|
||||
"171": "padding-block-end",
|
||||
"172": "padding-block-start",
|
||||
"173": "padding-bottom",
|
||||
"174": "padding-inline-end",
|
||||
"175": "padding-inline-start",
|
||||
"176": "padding-left",
|
||||
"177": "padding-right",
|
||||
"178": "padding-top",
|
||||
"179": "position",
|
||||
"180": "r",
|
||||
"181": "right",
|
||||
"182": "rotate",
|
||||
"183": "row-gap",
|
||||
"184": "rx",
|
||||
"185": "ry",
|
||||
"186": "scale",
|
||||
"187": "scrollbar-gutter",
|
||||
"188": "scrollbar-width",
|
||||
"189": "stop-color",
|
||||
"190": "stop-opacity",
|
||||
"191": "table-layout",
|
||||
"192": "text-decoration-color",
|
||||
"193": "text-decoration-style",
|
||||
"194": "text-decoration-thickness",
|
||||
"195": "text-overflow",
|
||||
"196": "top",
|
||||
"197": "transform",
|
||||
"198": "transform-box",
|
||||
"199": "transform-origin",
|
||||
"200": "transition-delay",
|
||||
"201": "transition-duration",
|
||||
"202": "transition-property",
|
||||
"203": "transition-timing-function",
|
||||
"204": "translate",
|
||||
"205": "unicode-bidi",
|
||||
"206": "user-select",
|
||||
"207": "vertical-align",
|
||||
"208": "width",
|
||||
"209": "x",
|
||||
"210": "y",
|
||||
"211": "z-index"
|
||||
"7": "color-scheme",
|
||||
"8": "cursor",
|
||||
"9": "direction",
|
||||
"10": "fill",
|
||||
"11": "fill-opacity",
|
||||
"12": "fill-rule",
|
||||
"13": "font-family",
|
||||
"14": "font-feature-settings",
|
||||
"15": "font-language-override",
|
||||
"16": "font-size",
|
||||
"17": "font-style",
|
||||
"18": "font-variant-alternates",
|
||||
"19": "font-variant-caps",
|
||||
"20": "font-variant-east-asian",
|
||||
"21": "font-variant-emoji",
|
||||
"22": "font-variant-ligatures",
|
||||
"23": "font-variant-numeric",
|
||||
"24": "font-variant-position",
|
||||
"25": "font-variation-settings",
|
||||
"26": "font-weight",
|
||||
"27": "font-width",
|
||||
"28": "image-rendering",
|
||||
"29": "letter-spacing",
|
||||
"30": "line-height",
|
||||
"31": "list-style-image",
|
||||
"32": "list-style-position",
|
||||
"33": "list-style-type",
|
||||
"34": "math-depth",
|
||||
"35": "math-shift",
|
||||
"36": "math-style",
|
||||
"37": "pointer-events",
|
||||
"38": "quotes",
|
||||
"39": "stroke",
|
||||
"40": "stroke-dasharray",
|
||||
"41": "stroke-dashoffset",
|
||||
"42": "stroke-linecap",
|
||||
"43": "stroke-linejoin",
|
||||
"44": "stroke-miterlimit",
|
||||
"45": "stroke-opacity",
|
||||
"46": "stroke-width",
|
||||
"47": "tab-size",
|
||||
"48": "text-align",
|
||||
"49": "text-anchor",
|
||||
"50": "text-decoration-line",
|
||||
"51": "text-indent",
|
||||
"52": "text-justify",
|
||||
"53": "text-shadow",
|
||||
"54": "text-transform",
|
||||
"55": "visibility",
|
||||
"56": "white-space",
|
||||
"57": "word-break",
|
||||
"58": "word-spacing",
|
||||
"59": "word-wrap",
|
||||
"60": "writing-mode",
|
||||
"61": "align-content",
|
||||
"62": "align-items",
|
||||
"63": "align-self",
|
||||
"64": "animation-delay",
|
||||
"65": "animation-direction",
|
||||
"66": "animation-duration",
|
||||
"67": "animation-fill-mode",
|
||||
"68": "animation-iteration-count",
|
||||
"69": "animation-name",
|
||||
"70": "animation-play-state",
|
||||
"71": "animation-timing-function",
|
||||
"72": "appearance",
|
||||
"73": "aspect-ratio",
|
||||
"74": "backdrop-filter",
|
||||
"75": "background-attachment",
|
||||
"76": "background-clip",
|
||||
"77": "background-color",
|
||||
"78": "background-image",
|
||||
"79": "background-origin",
|
||||
"80": "background-position-x",
|
||||
"81": "background-position-y",
|
||||
"82": "background-repeat",
|
||||
"83": "background-size",
|
||||
"84": "border-bottom-color",
|
||||
"85": "border-bottom-left-radius",
|
||||
"86": "border-bottom-right-radius",
|
||||
"87": "border-bottom-style",
|
||||
"88": "border-bottom-width",
|
||||
"89": "border-left-color",
|
||||
"90": "border-left-style",
|
||||
"91": "border-left-width",
|
||||
"92": "border-right-color",
|
||||
"93": "border-right-style",
|
||||
"94": "border-right-width",
|
||||
"95": "border-top-color",
|
||||
"96": "border-top-left-radius",
|
||||
"97": "border-top-right-radius",
|
||||
"98": "border-top-style",
|
||||
"99": "border-top-width",
|
||||
"100": "bottom",
|
||||
"101": "box-shadow",
|
||||
"102": "box-sizing",
|
||||
"103": "clear",
|
||||
"104": "clip",
|
||||
"105": "clip-path",
|
||||
"106": "column-count",
|
||||
"107": "column-gap",
|
||||
"108": "column-span",
|
||||
"109": "column-width",
|
||||
"110": "content",
|
||||
"111": "content-visibility",
|
||||
"112": "counter-increment",
|
||||
"113": "counter-reset",
|
||||
"114": "counter-set",
|
||||
"115": "cx",
|
||||
"116": "cy",
|
||||
"117": "display",
|
||||
"118": "filter",
|
||||
"119": "flex-basis",
|
||||
"120": "flex-direction",
|
||||
"121": "flex-grow",
|
||||
"122": "flex-shrink",
|
||||
"123": "flex-wrap",
|
||||
"124": "float",
|
||||
"125": "grid-auto-columns",
|
||||
"126": "grid-auto-flow",
|
||||
"127": "grid-auto-rows",
|
||||
"128": "grid-column-end",
|
||||
"129": "grid-column-start",
|
||||
"130": "grid-row-end",
|
||||
"131": "grid-row-start",
|
||||
"132": "grid-template-areas",
|
||||
"133": "grid-template-columns",
|
||||
"134": "grid-template-rows",
|
||||
"135": "height",
|
||||
"136": "inline-size",
|
||||
"137": "inset-block-end",
|
||||
"138": "inset-block-start",
|
||||
"139": "inset-inline-end",
|
||||
"140": "inset-inline-start",
|
||||
"141": "justify-content",
|
||||
"142": "justify-items",
|
||||
"143": "justify-self",
|
||||
"144": "left",
|
||||
"145": "margin-block-end",
|
||||
"146": "margin-block-start",
|
||||
"147": "margin-bottom",
|
||||
"148": "margin-inline-end",
|
||||
"149": "margin-inline-start",
|
||||
"150": "margin-left",
|
||||
"151": "margin-right",
|
||||
"152": "margin-top",
|
||||
"153": "mask",
|
||||
"154": "mask-image",
|
||||
"155": "mask-type",
|
||||
"156": "max-height",
|
||||
"157": "max-inline-size",
|
||||
"158": "max-width",
|
||||
"159": "min-height",
|
||||
"160": "min-inline-size",
|
||||
"161": "min-width",
|
||||
"162": "object-fit",
|
||||
"163": "object-position",
|
||||
"164": "opacity",
|
||||
"165": "order",
|
||||
"166": "outline-color",
|
||||
"167": "outline-offset",
|
||||
"168": "outline-style",
|
||||
"169": "outline-width",
|
||||
"170": "overflow-x",
|
||||
"171": "overflow-y",
|
||||
"172": "padding-block-end",
|
||||
"173": "padding-block-start",
|
||||
"174": "padding-bottom",
|
||||
"175": "padding-inline-end",
|
||||
"176": "padding-inline-start",
|
||||
"177": "padding-left",
|
||||
"178": "padding-right",
|
||||
"179": "padding-top",
|
||||
"180": "position",
|
||||
"181": "r",
|
||||
"182": "right",
|
||||
"183": "rotate",
|
||||
"184": "row-gap",
|
||||
"185": "rx",
|
||||
"186": "ry",
|
||||
"187": "scale",
|
||||
"188": "scrollbar-gutter",
|
||||
"189": "scrollbar-width",
|
||||
"190": "stop-color",
|
||||
"191": "stop-opacity",
|
||||
"192": "table-layout",
|
||||
"193": "text-decoration-color",
|
||||
"194": "text-decoration-style",
|
||||
"195": "text-decoration-thickness",
|
||||
"196": "text-overflow",
|
||||
"197": "top",
|
||||
"198": "transform",
|
||||
"199": "transform-box",
|
||||
"200": "transform-origin",
|
||||
"201": "transition-delay",
|
||||
"202": "transition-duration",
|
||||
"203": "transition-property",
|
||||
"204": "transition-timing-function",
|
||||
"205": "translate",
|
||||
"206": "unicode-bidi",
|
||||
"207": "user-select",
|
||||
"208": "vertical-align",
|
||||
"209": "width",
|
||||
"210": "x",
|
||||
"211": "y",
|
||||
"212": "z-index"
|
||||
}
|
||||
All properties associated with document.body.style by default:
|
||||
{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue