aboutsummaryrefslogtreecommitdiff
path: root/js/panels/CSSPanel/css-shorthand-map.js
blob: 191dbae53d7e3a168eaae56815c90cd1f6af2ef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/* <copyright>
This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
(c) Copyright 2011 Motorola Mobility, Inc.  All Rights Reserved.
</copyright> */

exports.CSS_SHORTHAND_MAP = {
    'background-attachment' : ['background'],
    'background-clip' : ['background'],
    'background-color' : ['background'],
    'background-image' : ['background'],
    'background-origin' : ['background'],
    'background-position-x' : ['background', 'background-position'],
    'background-position-y' : ['background', 'background-position'],
    'background-repeat-x' : ['background', 'background-repeat'],
    'background-repeat-y' : ['background', 'background-repeat'],
    
    'border-bottom' : ['border'],
    'border-bottom-color' : ['border', 'border-bottom'],
    'border-bottom-style' : ['border', 'border-bottom'],
    'border-bottom-width' : ['border', 'border-bottom'],
    
    'border-left' : ['border'],
    'border-left-color' : ['border', 'border-left'],
    'border-left-style' : ['border', 'border-left'],
    'border-left-width' : ['border', 'border-left'],
    
    'border-right' : ['border'],
    'border-right-color' : ['border', 'border-right'],
    'border-right-style' : ['border', 'border-right'],
    'border-right-width' : ['border', 'border-right'],
    
    'border-top' : ['border'],
    'border-top-color' : ['border', 'border-top'],
    'border-top-style' : ['border', 'border-top'],
    'border-top-width' : ['border', 'border-top'],
    
    'border-color' : ['border'],
    'border-style' : ['border'],
    
    'border-image-outset' : ['border-image'],
    'border-image-repeat' : ['border-image'],
    'border-image-slice' : ['border-image'],
    'border-image-source' : ['border-image'],
    'border-image-width' : ['border-image'],
    
    'border-bottom-left-radius' : ['border-radius'],
    'border-bottom-right-radius' : ['border-radius'],
    'border-top-left-radius' : ['border-radius'],
    'border-top-right-radius' : ['border-radius'],
        
    'font-style' : ['font'],
    'font-family' : ['font'],
    'font-size' : ['font'],
    'font-variant' : ['font'],
    'font-weight' : ['font'],
    
    'list-style-image' : ['list-style'],
    'list-style-position' : ['list-style'],
    'list-style-type' : ['list-style'],
    
    'margin-bottom' : ['margin'],
    'margin-left' : ['margin'],
    'margin-right' : ['margin'],
    'margin-top' : ['margin'],
    
    'padding-bottom' : ['padding'],
    'padding-left' : ['padding'],
    'padding-right' : ['padding'],
    'padding-top' : ['padding'],
    
    '-webkit-transition-property' : ['-webkit-transition'],
    '-webkit-transition-duration' : ['-webkit-transition'],
    '-webkit-transition-timing-function' : ['-webkit-transition'],
    '-webkit-transition-delay' : ['-webkit-transition']
};

exports.CSS_SHORTHAND_TO_SUBPROP_MAP = {
    'background' : ["background-image", "background-repeat-x", "background-repeat-y", "background-attachment",
                    "background-position-x", "background-position-y", "background-origin", "background-clip",
                    "background-color"],
    'border' : ["border-top-width", "border-right-width", "border-bottom-width", "border-left-width",
                "border-top-style", "border-right-style", "border-bottom-style", "border-left-style",
                "border-top-color", "border-right-color", "border-bottom-color", "border-left-color", "border-image"],
    'border-radius' : ["border-top-left-radius", "border-top-right-radius", "border-bottom-right-radius",
                       "border-bottom-left-radius"],
    'font' : ["font-family", "font-size", "font-style", "font-variant", "font-weight", "line-height"],
    'list' : ["list-style-type", "list-style-image", "list-style-position"],
    'margin' : ["margin-top", "margin-right", "margin-bottom", "margin-left"],
    'padding' : ["padding-top", "padding-right", "padding-bottom", "padding-left"],
    '-webkit-transition' : ["-webkit-transition-property", "-webkit-transition-duration",
                            "-webkit-transition-timing-function", "-webkit-transition-delay"]
};