Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add bounded semantic comparison for project styling changes

Đang mở
#459 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
38/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust, typescript
Lĩnh vực
compilers, testing-qa, tooling

Hướng nghiên cứu

Start with site/architecture/styling-ir-roadmap.md, then trace the Rust rule identity, ordering, resource, and condition semantics through the compiler → codec → engine path. Check how the TypeScript wrapper exposes read-only results without reimplementing comparison. Done means bounded equivalent, different, or unknown results with evidence, diagnostics, parity checks, and the listed acceptance tests.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Goal

Provide a bounded semantic comparison of two supported project/manifest states for a declared class and context corpus. Do not claim general CSS equivalence from JSON or text equality.

Roadmap: #455 and #456. Design context: site/architecture/styling-ir-roadmap.md.

Concrete use case

Comparing display:block flex with block flex must report the changed winner, even if a canonical spelling looks shorter. A result over one class list must not imply equivalence for all possible classes, modes or browsers.

Ownership and compatibility

  • Rust owns rule identity, ordering, resources and condition semantics. A compiler/tooling wrapper may present results to editors. TypeScript must not reimplement semantic comparison.
  • Define finite inputs: manifest pair, class lists, active modes/conditions and relevant layer/importance context. Return observed equivalent, observed different, or unknown outside the stated corpus, with evidence and diagnostics.
  • Additive 2.x read-only API outside runtime bundle; no automatic autofix or migration follows solely from this result.

Acceptance criteria

  • Tests cover token/raw values, important and native layer order, shorthand/longhand competition, condition changes, fallback declarations, class groups and native conditional rules and resource withdrawal.
  • Native/Wasm parity and compiler → codec → engine persistence are checked for supported inputs; unsupported versions or contexts fail or return explicit unknown.
  • Documentation states that browser support and computed style remain unverified without browser execution. Boundary/type/lint and bundle checks pass.
Ngôn ngữ chính
TypeScript
Star
2k
Fork
44
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của master-co/css

Tất cả issue của master-co/css

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.