excaped characters break selector detection with tailwind v3
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, tailwindcss
調査の方向性
Start with the supplied PostCSS configuration and nested CSS example, then run the linked Tailwind Play reproduction. Trace selector detection for the escaped :, [ and ] characters and compare the generated CSS and warning with the reported output. Done means the reproduction handles these escaped selectors correctly without the reported detection failure.
索引モデルが issue の本文から書いたものです。
説明
it seems it breaks with escaped characters
terminal warning:
2:3 ⚠ Nested @tailwind rules were detected, but are not supported.
Consider using a prefix to scope Tailwind's classes: https://tailwindcss.com/docs/configuration#prefix
Alternatively, use the important selector strategy: https://tailwindcss.com/docs/configuration#selector-strategy [undefined]
local config:
"postcss-nested": "^7.0.2",
module.exports = {
plugins: {
'postcss-import': {},
'postcss-nested': {},
tailwindcss: {},
autoprefixer: {},
},
}
css file:
#bluesky-embed {
@tailwind base;
@tailwind components;
@tailwind utilities;
.break-word {
word-break: break-word;
}
}
result:
@media (min-width: 1536px) {
// not escaped
#bluesky-embed .container {
max-width: 1536px;
}
}
// : is escaped
.hover\:underline:hover {
text-decoration-line: underline;
}
@media (min-width: 300px) {
// : [ ] are escaped
.min-\[300px\]\:text-lg {
font-size: 1.125rem;
line-height: 1.75rem;
}
}
following https://tailwindcss.com/docs/using-with-preprocessors#nesting
https://play.tailwindcss.com/4L4HQiVNmh
related to https://github.com/tailwindlabs/tailwindcss/issues/14753#issuecomment-2495747574
- 主要言語
- JavaScript
- スター
- 1.2k
- フォーク
- 64
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
postcss/postcss-nested のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
postcss/postcss-nested#149 · コメント 3 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
postcss/postcss-nested#139 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
postcss/postcss-nested#111 · コメント 1 件 ·
postcss/postcss-nested の issue をすべて見る
似ている issue
-
bug confirmed issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
open-webui/open-webui#30750 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Mend: dependency security vulnerability untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100