mirror of
https://github.com/servo/servo.git
synced 2025-10-04 10:39:16 +01:00
Gijs for front-end bits, layout for the new CSS properties and the removal of nsDeckFrame / nsStackLayout, Jamie and Morgan for the a11y changes. As discussed in the bug, the main tricky part here is handling a11y correctly. For <deck>, that's trivial (just use `visibility: hidden` to hide the panels visually, while removing the unselected panels from the a11y tree). For <tabpanels> however we need to do something special. We do want to hide stuff visually, but we want to preserve the contents in the a11y tree. For that, the easiest fix is introducing a new privileged CSS property (-moz-subtree-hidden-only-visually), which takes care of not painting the frame, but marks stuff offscreen in the accessibility tree. This is not intended to be a property used widely. Other than that, the changes are relatively straight-forward, though some of the accessible/mac changes I could get a sanity-check on. Differential Revision: https://phabricator.services.mozilla.com/D157875
22 lines
874 B
Rust
22 lines
874 B
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
//! Computed values for UI properties
|
|
|
|
use crate::values::computed::color::Color;
|
|
use crate::values::computed::image::Image;
|
|
use crate::values::computed::Number;
|
|
use crate::values::generics::ui as generics;
|
|
|
|
pub use crate::values::specified::ui::CursorKind;
|
|
pub use crate::values::specified::ui::{BoolInteger, UserSelect};
|
|
|
|
/// A computed value for the `cursor` property.
|
|
pub type Cursor = generics::GenericCursor<CursorImage>;
|
|
|
|
/// A computed value for item of `image cursors`.
|
|
pub type CursorImage = generics::GenericCursorImage<Image, Number>;
|
|
|
|
/// A computed value for `scrollbar-color` property.
|
|
pub type ScrollbarColor = generics::GenericScrollbarColor<Color>;
|