mdn / interactive-examples

Home of the MDN live code editor interactive examples
Creative Commons Zero v1.0 Universal
726 stars 506 forks source link

Set `<p>` element's color to `initial` (from CanvasText) #2802

Closed manav-sharma69 closed 1 month ago

manav-sharma69 commented 1 month ago

Description

Set the <p> element's color to initial would replace the inherited CanvasText color and set to its initial color (black - I guess), making it visible.

Motivation

Make paragraph text visible.

Additional details

In case someone considers the changes "not the best practice", initial property is used to reset the color of for an element

Related issues and pull requests

Fixes #2798

github-actions[bot] commented 1 month ago

It looks like this is your first pull request. 🎉 Thank you for your contribution! One of the project maintainers will triage and assign the pull request for review. We appreciate your patience. To safeguard the health of the project, please take a moment to read our code of conduct.

github-actions[bot] commented 1 month ago

Congratulations on your first merged pull request. 🎉 Thank you for your contribution! Did you know we have a project board with high-impact contribution opportunities? We look forward to your next contribution.