feat(web): Go W-G11 render head links for C2–C4
Emit page.head scripts/styles with defer and asset versioning so shell/layout, style/head, and nav when/media offline smokes pass. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
56df0736fa
commit
26955f4f36
4 files changed
+205
-1
No files matched your search
@@ -22,6 +22,22 @@ func TestStyleSimple(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestStyleStrictKeepsQuotedSlash(t *testing.T) {
|
||||
css, err := style.Style(map[string]any{
|
||||
"name": "t",
|
||||
"strict": true,
|
||||
"table": []any{
|
||||
map[string]any{"选择器": ".box", "属性": "grid-column", "值": "1 / 5"},
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !strings.Contains(css, "1 / 5") {
|
||||
t.Fatalf("missing quoted value: %q", css)
|
||||
}
|
||||
}
|
||||
|
||||
func TestStyleStrictRejectsNumeric(t *testing.T) {
|
||||
_, err := style.Style(map[string]any{
|
||||
"name": "x",
|
||||
|
||||
Reference in new issue
Block a user