Committing CSS Crimes

The time for CSS-Tricks is over. Now is the time for CSS Crimes!

In this current landscape of content service providers, users are often limited to expressing themselves in text, links, and images. Sanitization rules tend to strip out HTML, …


Committing CSS Crimes originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.


This content originally appeared on CSS-Tricks and was authored by Bradley Kouchi

The time for CSS-Tricks is over. Now is the time for CSS Crimes!

In this current landscape of content service providers, users are often limited to expressing themselves in text, links, and images. Sanitization rules tend to strip out HTML, JavaScript, and various attributes.

Social media service Cohost allows users to have greater freedom with markup and inline styles than we may be typically used to. Some users have taken advantage of this freedom to commit CSS Crimes! It has resulted in creative recreations of familiar interfaces and interactive games by using properties in unconventional ways.

Blackle Mori created a contraption where pulling a handle slowly turns a series of gears, pulleys, and chains. Eventually an aperture opens to reveal the site’s mascot (“eggbug”) and the proclamation “Good Job!”. I have stared at this in Developer Tools and it is an amazing combination of grid, resize, transform, and calc(). I ended up adding a border to all <div>s to try and get a better understanding of how each individual element moved.

There have been situations in the past where I have been restricted from using the full toolkit of HTML, JavaScript, and CSS. There have been many instances of using decorative CSS shapes to get around images. I have used :hover as a workaround for mouseenter and mouseleave. I have used input:checked as a sibling selector for toggling.

While CSS Crimes are probably not something you would want to employ on a regular basis, we should embrace experiments within constraints that can foster creative solutions.

To Shared LinkPermalink on CSS-Tricks


Committing CSS Crimes originally published on CSS-Tricks, which is part of the DigitalOcean family. You should get the newsletter.


This content originally appeared on CSS-Tricks and was authored by Bradley Kouchi


Print Share Comment Cite Upload Translate Updates
APA

Bradley Kouchi | Sciencx (2022-08-09T13:01:44+00:00) Committing CSS Crimes. Retrieved from https://www.scien.cx/2022/08/09/committing-css-crimes/

MLA
" » Committing CSS Crimes." Bradley Kouchi | Sciencx - Tuesday August 9, 2022, https://www.scien.cx/2022/08/09/committing-css-crimes/
HARVARD
Bradley Kouchi | Sciencx Tuesday August 9, 2022 » Committing CSS Crimes., viewed ,<https://www.scien.cx/2022/08/09/committing-css-crimes/>
VANCOUVER
Bradley Kouchi | Sciencx - » Committing CSS Crimes. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/08/09/committing-css-crimes/
CHICAGO
" » Committing CSS Crimes." Bradley Kouchi | Sciencx - Accessed . https://www.scien.cx/2022/08/09/committing-css-crimes/
IEEE
" » Committing CSS Crimes." Bradley Kouchi | Sciencx [Online]. Available: https://www.scien.cx/2022/08/09/committing-css-crimes/. [Accessed: ]
rf:citation
» Committing CSS Crimes | Bradley Kouchi | Sciencx | https://www.scien.cx/2022/08/09/committing-css-crimes/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.