LibWeb: Improve user-select support

This commit is contained in:
Psychpsyo 2025-01-04 15:25:17 +01:00 committed by Sam Atkins
commit eb7824339b
Notes: github-actions[bot] 2025-01-06 12:23:36 +00:00
3 changed files with 11 additions and 0 deletions

View file

@ -893,3 +893,8 @@ input[type=checkbox][switch]:checked::before {
input[type=checkbox][switch]:checked { input[type=checkbox][switch]:checked {
background-color: AccentColor; background-color: AccentColor;
} }
/* https://drafts.csswg.org/css-ui/#propdef-user-select */
button, meter, progress, select {
user-select: none;
}

View file

@ -130,6 +130,9 @@
"-webkit-transition-timing-function": { "-webkit-transition-timing-function": {
"legacy-alias-for": "transition-timing-function" "legacy-alias-for": "transition-timing-function"
}, },
"-webkit-user-select": {
"legacy-alias-for": "user-select"
},
"accent-color": { "accent-color": {
"animation-type": "by-computed-value", "animation-type": "by-computed-value",
"inherited": true, "inherited": true,

View file

@ -129,6 +129,9 @@ All supported properties and their default values exposed from CSSStyleDeclarati
'WebkitTransitionTimingFunction': 'ease' 'WebkitTransitionTimingFunction': 'ease'
'webkitTransitionTimingFunction': 'ease' 'webkitTransitionTimingFunction': 'ease'
'-webkit-transition-timing-function': 'ease' '-webkit-transition-timing-function': 'ease'
'WebkitUserSelect': 'auto'
'webkitUserSelect': 'auto'
'-webkit-user-select': 'auto'
'accentColor': 'auto' 'accentColor': 'auto'
'accent-color': 'auto' 'accent-color': 'auto'
'alignContent': 'normal' 'alignContent': 'normal'