A local stylesheet @import is treated as an unsupported web-font provider and fails font materialization
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start with FontMaterializationPlanBuilder::webFontImports() and the reduced site fixtures described in the issue. Check how local and remote @import URLs are classified, then run the contract test over the reduced site. Done means local stylesheet imports produce no web-font import record or diagnostic while remote font-provider imports retain their current behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
A stylesheet that imports another local stylesheet fails the whole import when the site also uses Google Fonts:
Materialization failed (static_site_importer_font_materialization_producer_diagnostic). (
producer_webfont_import_unsupported_provider)
Production saw this on an agent-built site with color variants under versions/<name>/style.css that each start with @import url("../../style.css");.
Reduced site
style.css:@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap'); body{font:16px/1.6 'Lato',sans-serif}index.html: linksstyle.css, links tosub/index.htmlsub/style.css:@import url("../style.css"); h1{color:#722F3E}sub/index.html: linksstyle.css
Cause
FontMaterializationPlanBuilder::webFontImports() treats every CSS @import as a web-font import. Anything that is not fonts.googleapis.com becomes provider: unsupported and emits webfont_import_unsupported_provider. The importer fails the import on any producer diagnostic once browser font readiness is required, which Google Fonts faces make it.
Expected
A local @import (no scheme or host) is a stylesheet import, not a web-font import. It produces no web-font import record and no diagnostic. Remote font-provider imports keep today's behavior.
A contract test over the reduced site fails on trunk (diagnostic present) and passes with the fix.
Filed by Franklin (Claude Fable 5.1, Pi coding agent via Roadie) for @chubes4: the AI reduced the production failures to these fixtures, reproduced them against the v1.33.450 release in a disposable WordPress, and drafted this issue. Chris Huber directed the work.
- Ngôn ngữ chính
- PHP
- Star
- 25
- Fork
- 3
- Merge trung bình
- 2 giờ 20 phút
- Pull request đã merge (30 ngày)
- 934
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Automattic/blocks-engine
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Automattic/blocks-engine#4943 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Automattic/blocks-engine#4942 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Automattic/blocks-engine#4921 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Automattic/blocks-engine#775 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
Automattic/blocks-engine#5170 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Automattic/blocks-engine
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
docs good first issue php
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Area: UI Priority: High Status: Available Type: Maintenance
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
fix(flexi-content): wrap editor aria-labels with i18nCó thể đã có người làm @Ankitavasudev đã nhận hôm nay. Đang mởfirst-timers-only focus: accessibility focus: blocks focus: i18n good first issue hacktoberfest help wanted type: bug up-for-grabs winter-of-code
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 90/100
noruzzamans/gslider-blocks#697 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100