mirror of
https://github.com/servo/servo.git
synced 2025-10-17 08:49:21 +01:00
Implement from(StyleComplexColor) for ColorOrAuto. Thanks @emilio. (+4 squashed commits) Squashed commits: [baf7cc0
] Add clone to caret-color [9cb82ca
] Correctly call methods to copy a color in a SympleComplexColor and getting its auto [c483f07
] Add set and copy functions for caret_color [0aa20be
] Move caret-color and set its product property to gecko
32 lines
1.7 KiB
Rust
32 lines
1.7 KiB
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 http://mozilla.org/MPL/2.0/. */
|
|
|
|
<%namespace name="helpers" file="/helpers.mako.rs" />
|
|
<% from data import Method %>
|
|
|
|
// CSS Basic User Interface Module Level 1
|
|
// https://drafts.csswg.org/css-ui-3/
|
|
<% data.new_style_struct("UI", inherited=False, gecko_name="UIReset") %>
|
|
|
|
// TODO spec says that UAs should not support this
|
|
// we should probably remove from gecko (https://bugzilla.mozilla.org/show_bug.cgi?id=1328331)
|
|
${helpers.single_keyword("ime-mode", "auto normal active disabled inactive",
|
|
products="gecko", gecko_ffi_name="mIMEMode",
|
|
animatable=False,
|
|
spec="https://drafts.csswg.org/css-ui/#input-method-editor")}
|
|
|
|
${helpers.single_keyword("-moz-user-select", "auto text none all element elements" +
|
|
" toggle tri-state -moz-all -moz-none -moz-text",
|
|
products="gecko",
|
|
alias="-webkit-user-select",
|
|
gecko_ffi_name="mUserSelect",
|
|
gecko_enum_prefix="StyleUserSelect",
|
|
animatable=False,
|
|
spec="https://drafts.csswg.org/css-ui-4/#propdef-user-select")}
|
|
|
|
${helpers.single_keyword("-moz-window-dragging", "default drag no-drag", products="gecko",
|
|
gecko_ffi_name="mWindowDragging",
|
|
gecko_enum_prefix="StyleWindowDragging",
|
|
animatable=False,
|
|
spec="None (Nonstandard Firefox-only property)")}
|