CSS Values lvl 5, standard if() syntax
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
Rechercherichtung
Beginne damit, die Spezifikation zur if()-Notation in CSS Values Level 5 zu lesen und sie mit dem bestehenden postcss-conditional-values-Plugin zu vergleichen. Das Issue nennt keine Dateien, Tests oder einen definierten Implementierungsumfang; abgeschlossen wäre die Arbeit erst, wenn vereinbart ist, ob ein neues Plugin eine nützliche Teilmenge der Standardsyntax unterstützen kann und wie dieser Umfang validiert werden sollte.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
What would you want to propose?
Spec: https://drafts.csswg.org/css-values-5/#if-notation
This is the draft for a standard conditional selector.
There is a plugin that does similar thing called postcss-conditional-values, it could either be modified to support new experimental syntax, or a new plugin could be made partly based on it.
Would be nice to have a polyfill for this in the future with the standard syntax.
Suggested solution
Spec allows media queries, and overall it is differs from postcss-conditional-values in a number of ways, so a new plugin is probably better.
Spec allows stuff like this:
.valid-if {
--if-clause: media(width >= 600px): blue;
color: if(...var(--if-clause); else: green;);
}
I don't think is something that can be polyfilled
Additional context
Overall this is more of a different syntax for queries, and doesn't replace postcss-conditional-values.
This request is related to https://github.com/csstools/postcss-plugins/issues/134 for some part.
Validations
- Follow our Code of Conduct
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Would you like to open a PR for this feature?
- I'm willing to open a PR
- Vorherrschende Sprache
- CSS
- Sterne
- 1.1k
- Forks
- 83
- Ø Merge
- 6 Std. 43 Min.
- Gemergte PRs (30 T.)
- 26
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus csstools/postcss-plugins
-
`symbols()` functionOffenfeature request
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 52/100
csstools/postcss-plugins#1894 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
csstools/postcss-plugins#1717 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug plugins/postcss-font-variant upstream
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
csstools/postcss-plugins#1546 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
help wanted
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
csstools/postcss-plugins#1451 · 1 Kommentar · 2 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag
-
`@scope` supportOffenfeature request
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
csstools/postcss-plugins#1358 · 6 Kommentare · 3 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in csstools/postcss-plugins
Ähnliche Issues
-
good first issue hacktoberfest
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Tanishq964/trail-kit.#4 ·
-
Optional url field cannot be cleared in the admin: empty value rejected as invalid URLEvtl. vergeben @emdashbot hat das heute übernommen. Offenbot:bug bot:needs-attention
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
emdash-cms/emdash#4075 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement good first issue ready-for-agent
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
AbhishekBalija/MathGPT#56 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
no-human-ai/no_human#660 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100