matthiasblaesing opened a new pull request, #5432:
URL: https://github.com/apache/netbeans/pull/5432
**Support recursive CSS property definitions (calc function with embedded
function calls)**
The grammar for calc property values failed to parse embedded var and
calc calls correctly. The issue is the work-around introduces as
function-content, which basicly prevents nesting any expression that
contains braces.
This changes the grammar parsing result from a tree to a directed graph,
which can contain cycles. This needs to taken into account by useers of
the parsed grammar.
An example of such a cycle is:
```
calc-fn -> calc-sum -> calc-product -> calc-value -> calc-sum
^ |
+----------------------------------------+
```
For example this is now supported:
```css
.header {
height: calc(28 * var(--spacing-unit));
}
```
**Improve compatibility for custom properties**
Custom properties can hold more or less arbitrary content. This was not
parsed and is now:
```css
:root {
--grid-gutter: (var(--margins) * var(--spacing-unit));
--cell-margin: (var(--grid-gutter) / 2);
}
```
**Support CSS :has pseudo-class**
This was not parsed and is now:
```css
body:has(+ #aCheck:checked) {
background-color:red;
}
```
Closes: #5052
Closes: #5303
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists