Page 1 of 2

? Error CSS font-family: system-ui;

Posted: Thu Sep 30, 2021 2:28 pm
by doczimut
Hello
Recently, a CSS validation test by W3C (tested with cmsimple-xh.org) shows me the error Value Error 8 times: font-family system-ui is not a font-family value: system-ui
Do you know why ? This corresponds to the 8 x @font-face defined in /assets/css/core.css

Re: ? Error CSS font-family: system-ui;

Posted: Thu Sep 30, 2021 2:48 pm
by frase
Hm, this is indeed a problem - but not of CMSimple_XH but of the validator.
The system-ui font specification is valid and works in all reasonably modern browsers.

There are several major websites that use system-ui just like this.
I guess you don't have to worry about that.

Re: ? Error CSS font-family: system-ui;

Posted: Thu Sep 30, 2021 2:55 pm
by doczimut
Yes, because after browsing the web, the property is clearly indicated as valid. And 1 or 2 months ago, these errors did not appear.

Re: ? Error CSS font-family: system-ui;

Posted: Thu Sep 30, 2021 4:07 pm
by cmb
Hm, but what about the parse errors?

Re: ? Error CSS font-family: system-ui;

Posted: Thu Sep 30, 2021 4:59 pm
by frase
cmb wrote:
Thu Sep 30, 2021 4:07 pm
Hm, but what about the parse errors?
I can't explain that to myself at the moment.
But I saw that the core.css is minified on this page (in xhstyles.css). Indeed, there are those bugs in there.
Olaf has to give some information.

The errors (with the semicolon) are not present in the original core.css (1.7.4).

Re: ? Error CSS font-family: system-ui;

Posted: Fri Oct 01, 2021 6:17 am
by olape
frase wrote:
Thu Sep 30, 2021 4:59 pm
The errors (with the semicolon) are not present in the original core.css (1.7.4).
Es ist noch eine 1.7.2. :oops:

Ich hoffe auf den Winter und die 1.7.5.

Re: ? Error CSS font-family: system-ui;

Posted: Fri Oct 01, 2021 6:25 am
by frase
olape wrote:
Fri Oct 01, 2021 6:17 am
Es ist noch eine 1.7.2. :oops:
Das ist ja nicht weiter tragisch.
Die Frage ist, wie hast du die Minifizierung der core.css bzw. der xhstyles.css gemacht?
Ich vermute stark, dass dabei die Parse-Fehler entstehen bzw. entstanden.

Re: ? Error CSS font-family: system-ui;

Posted: Fri Oct 01, 2021 6:50 am
by olape
frase wrote:
Fri Oct 01, 2021 6:25 am
Ich vermute stark, dass dabei die Parse-Fehler entstehen bzw. entstanden.
Das glaube ich nicht wirklich, aber möglich ist natürlich alles.
Ohne jetzt nachzusehen (nachsehen zu können) vermute ich, damit: https://olaf.penschke.net/?CMSimple_XH/ ... d-Versuche

Re: ? Error CSS font-family: system-ui;

Posted: Fri Oct 01, 2021 7:07 am
by frase
Also:
Es ist genau an zwei Stellen passiert, dass aus xxx !important; -> xxx;!important geworden ist. (die anderen Fehler sind Folgen davon)

Glücklicherweise betreffen beide nur die PD-Tabs, sodass die Darstellung der Website überhaupt nicht betroffen ist.

Die automatische Minifizierung hat also offensichtlich noch ihre Schwächen. Auch bei CnC sind solche (seltenen) Fälle aufgetreten.

Bei dieser Gelegenheit fällt mir ein:
War/Ist das Laden der Core-Styles im Frontend überhaupt nötig?
War das nicht schonmal im Gespräch?

Re: ? Error CSS font-family: system-ui;

Posted: Fri Oct 01, 2021 7:38 am
by olape
frase wrote:
Fri Oct 01, 2021 7:07 am
Es ist genau an zwei Stellen passiert, dass aus xxx !important; -> xxx;!important geworden ist. (die anderen Fehler sind Folgen davon)
Hm :cry: ich schau es mir an, wenn ich die Zeit finde
frase wrote:
Fri Oct 01, 2021 7:07 am
Bei dieser Gelegenheit fällt mir ein:
War/Ist das Laden der Core-Styles im Frontend überhaupt nötig?
War das nicht schonmal im Gespräch?
Ja, darüber hatten wir schon mal geredet.
Aber ich weiss den Stand der Dinge nicht mehr.
Wenn ich mich recht erinnere sind / waren einige Grundformatierungen im Core-Style die auch im Frontend greifen.