2018-09-30 22:59:56 +00:00
|
|
|
==========================
|
2018-10-18 16:59:09 +00:00
|
|
|
Function calls
|
2018-09-30 22:59:56 +00:00
|
|
|
==========================
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: rgba(0, 255, 0, 0.5);
|
|
|
|
}
|
2018-10-18 06:14:21 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(stylesheet
|
|
|
|
(rule_set
|
|
|
|
(selectors (tag_name))
|
|
|
|
(block
|
|
|
|
(declaration
|
|
|
|
(property_name)
|
2018-10-18 16:59:09 +00:00
|
|
|
(call_expression (function_name) (arguments
|
2018-10-18 06:14:21 +00:00
|
|
|
(integer_value)
|
|
|
|
(integer_value)
|
|
|
|
(integer_value)
|
|
|
|
(float_value)))))))
|
2018-10-18 16:59:09 +00:00
|
|
|
|
2018-10-26 18:49:08 +00:00
|
|
|
=============================================
|
|
|
|
Calls where each argument has multiple values
|
|
|
|
=============================================
|
|
|
|
|
|
|
|
div {
|
|
|
|
background: repeating-linear-gradient(red, orange 50px);
|
|
|
|
clip-path: polygon(50% 0%, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0% 50%, 40% 40%);
|
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(stylesheet
|
|
|
|
(rule_set (selectors (tag_name)) (block
|
|
|
|
(declaration
|
|
|
|
(property_name)
|
|
|
|
(call_expression (function_name) (arguments
|
|
|
|
(plain_value)
|
|
|
|
(plain_value)
|
|
|
|
(integer_value (unit)))))
|
|
|
|
(declaration
|
|
|
|
(property_name)
|
|
|
|
(call_expression (function_name) (arguments
|
|
|
|
(integer_value (unit))
|
|
|
|
(integer_value (unit))
|
|
|
|
(integer_value (unit))
|
|
|
|
(integer_value (unit))
|
|
|
|
(integer_value (unit))
|
|
|
|
(integer_value (unit))
|
|
|
|
(integer_value (unit))
|
|
|
|
(integer_value (unit))
|
|
|
|
(integer_value (unit))
|
|
|
|
(integer_value (unit))
|
|
|
|
(integer_value (unit))
|
|
|
|
(integer_value (unit))
|
|
|
|
(integer_value (unit))
|
|
|
|
(integer_value (unit))
|
|
|
|
(integer_value (unit))
|
|
|
|
(integer_value (unit))))))))
|
|
|
|
|
2018-10-18 16:59:09 +00:00
|
|
|
============================
|
|
|
|
Color literals
|
|
|
|
============================
|
|
|
|
|
|
|
|
a {
|
|
|
|
b: #fafd04;
|
|
|
|
c: #fafd0401;
|
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(stylesheet
|
|
|
|
(rule_set
|
|
|
|
(selectors (tag_name))
|
|
|
|
(block
|
|
|
|
(declaration (property_name) (color_value))
|
|
|
|
(declaration (property_name) (color_value)))))
|
2018-10-23 03:20:36 +00:00
|
|
|
|
2018-10-26 16:37:10 +00:00
|
|
|
============================
|
|
|
|
Numbers
|
|
|
|
============================
|
|
|
|
|
|
|
|
a {
|
|
|
|
b: 0.5%;
|
|
|
|
c: 5em;
|
2018-10-26 16:46:25 +00:00
|
|
|
margin: 10E3px;
|
2018-10-26 16:37:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(stylesheet
|
|
|
|
(rule_set (selectors (tag_name)) (block
|
|
|
|
(declaration (property_name) (float_value (unit)))
|
2018-10-26 16:46:25 +00:00
|
|
|
(declaration (property_name) (integer_value (unit)))
|
|
|
|
(declaration (property_name) (float_value (unit))))))
|
2018-10-26 16:37:10 +00:00
|
|
|
|
2018-10-26 16:44:27 +00:00
|
|
|
============================
|
|
|
|
Binary arithmetic operators
|
|
|
|
============================
|
|
|
|
|
|
|
|
a {
|
|
|
|
width: calc(100% - 80px);
|
|
|
|
aspect-ratio: 1/2;
|
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(stylesheet
|
|
|
|
(rule_set
|
|
|
|
(selectors (tag_name))
|
|
|
|
(block
|
|
|
|
(declaration
|
|
|
|
(property_name)
|
|
|
|
(call_expression (function_name) (arguments (binary_expression (integer_value (unit)) (integer_value (unit))))))
|
|
|
|
(declaration
|
|
|
|
(property_name)
|
|
|
|
(binary_expression (integer_value) (integer_value))))))
|
|
|
|
|
2018-10-23 03:20:36 +00:00
|
|
|
============================
|
|
|
|
Strings
|
|
|
|
============================
|
|
|
|
|
|
|
|
a {
|
|
|
|
b: '';
|
|
|
|
c: '\'hi\'';
|
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(stylesheet
|
|
|
|
(rule_set
|
|
|
|
(selectors (tag_name))
|
|
|
|
(block
|
|
|
|
(declaration (property_name) (string_value))
|
|
|
|
(declaration (property_name) (string_value)))))
|
2018-10-26 18:41:14 +00:00
|
|
|
|
|
|
|
============================
|
|
|
|
URLs
|
|
|
|
============================
|
|
|
|
|
|
|
|
a {
|
|
|
|
b: http://something-else?foo=bar;
|
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(stylesheet
|
|
|
|
(rule_set
|
|
|
|
(selectors (tag_name))
|
|
|
|
(block
|
|
|
|
(declaration (property_name) (plain_value)))))
|
2018-10-26 18:42:36 +00:00
|
|
|
|
|
|
|
============================
|
|
|
|
Important declarations
|
|
|
|
============================
|
|
|
|
|
|
|
|
a {
|
|
|
|
b: c !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(stylesheet
|
|
|
|
(rule_set
|
|
|
|
(selectors (tag_name))
|
|
|
|
(block
|
|
|
|
(declaration (property_name) (plain_value) (important)))))
|
2018-10-28 21:19:40 +00:00
|
|
|
|
|
|
|
============================
|
|
|
|
Declarations without trailing semicolons
|
|
|
|
============================
|
|
|
|
|
|
|
|
a {
|
|
|
|
b: c;
|
|
|
|
d: e
|
|
|
|
}
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
(stylesheet
|
|
|
|
(rule_set
|
|
|
|
(selectors (tag_name))
|
|
|
|
(block
|
|
|
|
(declaration (property_name) (plain_value))
|
|
|
|
(declaration (property_name) (plain_value)))))
|