mirror of
https://github.com/servo/servo.git
synced 2025-08-25 23:28:21 +01:00
style: Rename the properties directories from "shorthand" to "shorthands", "longhand" to "longhands".
Bug: 1468651 Reviewed-by: heycam MozReview-Commit-ID: CY4THCC4zkX
This commit is contained in:
parent
5c15c59f56
commit
0a95513368
38 changed files with 37 additions and 37 deletions
69
components/style/properties/longhands/inherited_box.mako.rs
Normal file
69
components/style/properties/longhands/inherited_box.mako.rs
Normal file
|
@ -0,0 +1,69 @@
|
|||
/* 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" />
|
||||
|
||||
<% data.new_style_struct("InheritedBox", inherited=True, gecko_name="Visibility") %>
|
||||
|
||||
// TODO: collapse. Well, do tables first.
|
||||
${helpers.single_keyword("visibility",
|
||||
"visible hidden",
|
||||
extra_gecko_values="collapse",
|
||||
gecko_ffi_name="mVisible",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="https://drafts.csswg.org/css-box/#propdef-visibility")}
|
||||
|
||||
// CSS Writing Modes Level 3
|
||||
// https://drafts.csswg.org/css-writing-modes-3
|
||||
${helpers.single_keyword("writing-mode",
|
||||
"horizontal-tb vertical-rl vertical-lr",
|
||||
extra_gecko_values="sideways-rl sideways-lr",
|
||||
extra_gecko_aliases="lr=horizontal-tb lr-tb=horizontal-tb \
|
||||
rl=horizontal-tb rl-tb=horizontal-tb \
|
||||
tb=vertical-rl tb-rl=vertical-rl",
|
||||
servo_pref="layout.writing-mode.enabled",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-writing-modes/#propdef-writing-mode",
|
||||
servo_restyle_damage="rebuild_and_reflow")}
|
||||
|
||||
${helpers.single_keyword("direction", "ltr rtl", animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-writing-modes/#propdef-direction",
|
||||
needs_conversion=True,
|
||||
servo_restyle_damage="rebuild_and_reflow")}
|
||||
|
||||
${helpers.single_keyword("text-orientation",
|
||||
"mixed upright sideways",
|
||||
extra_gecko_aliases="sideways-right=sideways",
|
||||
products="gecko",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-writing-modes/#propdef-text-orientation")}
|
||||
|
||||
// CSS Color Module Level 4
|
||||
// https://drafts.csswg.org/css-color/
|
||||
${helpers.single_keyword("color-adjust",
|
||||
"economy exact", products="gecko",
|
||||
gecko_pref="layout.css.color-adjust.enabled",
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-color/#propdef-color-adjust")}
|
||||
|
||||
<% image_rendering_custom_consts = { "crisp-edges": "CRISPEDGES",
|
||||
"-moz-crisp-edges": "CRISPEDGES" } %>
|
||||
// According to to CSS-IMAGES-3, `optimizespeed` and `optimizequality` are synonyms for `auto`
|
||||
// And, firefox doesn't support `pixelated` yet (https://bugzilla.mozilla.org/show_bug.cgi?id=856337)
|
||||
${helpers.single_keyword("image-rendering",
|
||||
"auto",
|
||||
extra_gecko_values="optimizespeed optimizequality -moz-crisp-edges",
|
||||
extra_servo_values="pixelated crisp-edges",
|
||||
custom_consts=image_rendering_custom_consts,
|
||||
animation_value_type="discrete",
|
||||
spec="https://drafts.csswg.org/css-images/#propdef-image-rendering")}
|
||||
|
||||
${helpers.predefined_type("image-orientation",
|
||||
"ImageOrientation",
|
||||
"computed::ImageOrientation::zero()",
|
||||
products="gecko",
|
||||
animation_value_type="discrete",
|
||||
gecko_pref="layout.css.image-orientation.enabled",
|
||||
spec="https://drafts.csswg.org/css-images/#propdef-image-orientation, \
|
||||
/// additional values in https://developer.mozilla.org/en-US/docs/Web/CSS/image-orientation")}
|
Loading…
Add table
Add a link
Reference in a new issue