USS features that UI Toolkit does not support
Do not use these in a theme or a user sheet. UI Toolkit ignores them or logs an import warning.
| Feature | Use instead |
|---|---|
box-shadow |
filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5)). The filter works on any element: a window, a panel or a button. The shadow follows the shape of the element and its image, so a 9-sliced panel gets a shadow of its own outline. |
z-index |
Element order. The workspace brings the focused window to the front. |
!important |
A more specific selector, or a later sheet (AddUserStyleSheet). |
cursor: pointer and other CSS cursor keywords (runtime) |
A cursor texture: cursor: url("..."). |
@keyframes and animation-* |
transition-* with a state class, and WindowAnimations. |
@media |
One sheet per theme. Select it with SetTheme. |
calc() |
Fixed values or variables. |
Transitions on display |
Transition opacity, scale, translate or bounds. Change display after the task completes. |