Support CSS Anchor Positioning properties (position-area, position-try-fallbacks)

Đang mở
#526 1 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/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ệ
css, java
Lĩnh vực
tooling

Hướng nghiên cứu

Start by locating how the CSS validator defines recognized properties and where its CSS validation tests live; the issue does not name repository file paths. Use the declarations in Bikeshed’s dfn-panel.css as concrete cases, beginning with position-area and position-try-fallbacks. Done means the validator accepts those properties without reporting them as nonexistent; the remaining Anchor Positioning features are described as desirable extensions.

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

Mô tả

The validator doesn't recognize properties from CSS Anchor Positioning and reports them as non-existent:

error: CSS: “position-area”: Property “position-area” doesn't exist.
error: CSS: “position-try-fallbacks”: Property “position-try-fallbacks” doesn't exist.

Since Bikeshed switched its definition panels to popovers (speced/bikeshed#3330), every Bikeshed-generated spec includes this CSS (dfn-panel.css):

.dfn-panel {
    inset: auto;
    position-area: bottom span-right;
    position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
}
.dfn-panel.activated {
    position-area: none;
}

The Nu HTML Checker uses this validator for CSS checking, so W3C specs that run w3c/spec-prod with markup validation enabled (vnu-jar 26.10.12) now fail to deploy. Affected repositories have disabled markup validation as a workaround:

Supporting at least position-area and position-try-fallbacks (and ideally the rest of the module, e.g. anchor-name, position-anchor, position-try, position-try-order, position-visibility, anchor()/anchor-size(), and @position-try) would let these specs turn validation back on.

Ngôn ngữ chính
Java
Star
252
Fork
124
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 w3c/css-validator

Tất cả issue của w3c/css-validator

Issue tương tự

Thêm issue về Java

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.