https://github.com/delneg/modern-html-showcase
What simple HTML/CSS (and a teeny tiny bit of js) can do for you as of May/June 2025
https://github.com/delneg/modern-html-showcase
css html html5 html5-css3 mdn mdn-docs modern-web picocss
Last synced: 3 months ago
JSON representation
What simple HTML/CSS (and a teeny tiny bit of js) can do for you as of May/June 2025
- Host: GitHub
- URL: https://github.com/delneg/modern-html-showcase
- Owner: delneg
- Created: 2025-06-13T16:03:18.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2025-06-13T16:09:13.000Z (4 months ago)
- Last Synced: 2025-06-13T17:29:42.226Z (4 months ago)
- Topics: css, html, html5, html5-css3, mdn, mdn-docs, modern-web, picocss
- Language: HTML
- Homepage: https://delneg.github.io/modern-html-showcase/
- Size: 42 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Modern HTML & CSS Showcase
A showcase of modern HTML and CSS capabilities as of May 2025, with minimal JavaScript support. This project demonstrates the power of modern web standards without relying heavily on JavaScript frameworks.
**100% of the code & tests is written by AI.**
**Check it out** here:
https://delneg.github.io/modern-html-showcase/
## Features
- **Semantic Structure**: Proper use of HTML5 semantic elements
- **Text Formatting**: Advanced text formatting capabilities
- **Interactive Elements**: CSS-only interactive components
- **Form Elements**: Rich form validation and input types
- **Advanced Features**: Templates, progress indicators, and more
- **Accessibility Features**: ARIA attributes, skip navigation, and focus management
- **CSS Animations**: Keyframes, transitions, and hover effects
- **Responsive Design**: Viewport adaptations and container queries
- **Advanced Layouts**: Flexbox, Grid, and Subgrid
- **Modern CSS Selectors**: :has(), :is(), and logical properties
- **Dark Mode**: CSS-only theme switching
- **Print Styles**: Optimized printing experience
- **Minimal JS Features**: Essential JavaScript enhancements## Browser Testing
This project includes comprehensive browser tests using Playwright to verify that all HTML and CSS features function correctly across different browsers and devices.
### Test Coverage
The tests cover all major aspects of the showcase:
- Basic page structure and navigation
- Interactive elements
- Form validation and controls
- Accessibility features
- CSS features (animations, responsive design, dark mode, print styles)
- Minimal JavaScript features### Running Tests
To run the browser tests:
1. Install dependencies:
```bash
npm install
npx playwright install
```2. Run the tests:
```bash
npm test
```For more detailed information about the tests, see the [tests/README.md](tests/README.md) file.
## Development
### Local Development
To run the project locally:
```bash
npx http-server -p 8000
```Then open http://localhost:8000 in your browser.
### Browser Compatibility
The showcase is designed to work in all modern browsers, with some features having graceful fallbacks in older browsers. The browser tests verify compatibility across:
- Chromium-based browsers (Chrome, Edge)
- Firefox
- Safari (WebKit)## License
This project is licensed under the terms of the license included in the repository.
## Acknowledgements
- [Pico CSS](https://picocss.com/) for minimal CSS styling
- [Playwright](https://playwright.dev/) for browser testing