freeCodeCamp / freeCodeCamp/devdocs

CSS :has documentation shows wrong Firefox browser compatibility

未关闭
#1,874 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
docs/improvement
主要语言
Ruby
星标
39.5k
派生
2.6k
平均合并
4 天 32 分钟
30 天内合并 PR
13

描述

# Documentation style bug

## Summary
shows the wrong browser compatibility for Firefox. It shows that the pseudo-selector works in Firefox, but it actually has only partial functionality (due to currently incomplete/buggy implementation) and is gated behind a feature flag. (see MDN screenshot below for reference)
![Screenshot 2022-11-24 at 00-23-31 has() - CSS Cascading Style Sheets MDN](https://user-images.githubusercontent.com/2199511/203667900-c8d41d5b-29b4-4f14-85b5-3235ecb68ac6.png)

## Actual style
![Screenshot 2022-11-24 at 00-26-47 DevDocs](https://user-images.githubusercontent.com/2199511/203668185-cdeb6a47-5684-4413-b6be-f3185cea5111.png)

## Expected style
(cell style changed from `.bc-supports-yes` to `.bc-supports-partial`)
![Screenshot 2022-11-24 at 00-28-44 DevDocs](https://user-images.githubusercontent.com/2199511/203668604-d3f7a96b-55d4-4c61-a4de-d4c4dbc5761c.png)

贡献指南

打开贡献指南

调研方向

从 issue 中链接的 CSS :has 浏览器兼容性条目开始,将其 Firefox 状态与所引用的 MDN 兼容性信息进行比较。使用预期结果中描述的 `.bc-supports-partial` 样式,将 Firefox 显示从完全支持更新为部分支持,然后验证渲染的页面与截图一致。

由索引模型根据 Issue 内容生成。

评估

技术栈
css
领域
documentation
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。