? Error CSS font-family: system-ui;

General questions about CMSimple
doczimut
Posts: 126
Joined: Thu Dec 25, 2008 1:10 pm
Location: Normandy (France)

? Error CSS font-family: system-ui;

Post by doczimut » Thu Sep 30, 2021 2:28 pm

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

frase
Posts: 5085
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

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

Post by frase » Thu Sep 30, 2021 2:48 pm

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.

doczimut
Posts: 126
Joined: Thu Dec 25, 2008 1:10 pm
Location: Normandy (France)

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

Post by doczimut » Thu Sep 30, 2021 2:55 pm

Yes, because after browsing the web, the property is clearly indicated as valid. And 1 or 2 months ago, these errors did not appear.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

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

Post by cmb » Thu Sep 30, 2021 4:07 pm

Hm, but what about the parse errors?
Christoph M. Becker – Plugins for CMSimple_XH

frase
Posts: 5085
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

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

Post by frase » Thu Sep 30, 2021 4:59 pm

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).

olape
Posts: 2731
Joined: Fri Mar 13, 2015 8:47 am
Contact:

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

Post by olape » Fri Oct 01, 2021 6:17 am

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.
Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

frase
Posts: 5085
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

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

Post by frase » Fri Oct 01, 2021 6:25 am

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.

olape
Posts: 2731
Joined: Fri Mar 13, 2015 8:47 am
Contact:

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

Post by olape » Fri Oct 01, 2021 6:50 am

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
Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

frase
Posts: 5085
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

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

Post by frase » Fri Oct 01, 2021 7:07 am

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?

olape
Posts: 2731
Joined: Fri Mar 13, 2015 8:47 am
Contact:

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

Post by olape » Fri Oct 01, 2021 7:38 am

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.
Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

Post Reply