freeCodeCamp / freeCodeCamp/devdocs

CSS :has documentation shows wrong Firefox browser compatibility

Open
#1,874 3 comments 0 reactions 0 assignees View on GitHub
docs/improvement
Dominant language
Ruby
Stars
39.5k
Forks
2.6k
Avg merge
4d 32m
Merged PRs (30d)
13

Description

# 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)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.