You could probably work using the :nth-of-type selector instead, unless the rest of the nodes is a mixed bag of elementtypes.
i guess this works too… just not the best solution.
.ap_table-lined + .mx-listview, .ap_table-lined + script + .mx-listview{
background-color: red;
}
Yeah i saw the script also pop-up in some versions.
Never had an issue with it, but i can imagine someday i will, just like you…
That day has come! makes it so ugly and unpredictable for the future!
For now i think your own suggested solution is the only solution.. Would use that one too.
Maybe Mendix can move the script all the way to the bottom of the element in a future release?
I am using a one-size fits-all bit of code within my own flexbox usage.
> *:not(:empty):not(.nospacer) + *:not(:empty):not(.nospacer),
> script + *:not(:empty):not(.nospacer) {
// stuff
}
One solution that may work is to use the :last-of-type rather than last-child. Ofcourse this only works for when all your elements are similar types, such as a series of DIVs in a flex container which is messed up by the script elements
I filled a bug/support ticket: “ your request(98876)”