Links
Third party CSS is not safe
A few days ago there was a lot of chatter about a 'keylogger' built in CSS. Some folks called for browsers to 'fix' it. Some folks dug a bit deeper and saw that it only affected sites built in React-like frameworks, and pointed the finger at React. But the real problem is thinking that third party content is 'safe'.
Responsive Components: a Solution to the Container Queries Problem
Instead of narrowly focusing on the specific CSS feature proposal we call “container queries”, I want to focus on the broader concept of building components that respond to their environment. And if you accept this larger framing, there are actually new web APIs that already let you achieve this.
Short note on what CSS display properties do to table semantics
When CSS
display:block
ordisplay:grid
ordisplay:flex
is set on thetable
element, bad things happen. The table is no longer represented as a table in the accessibility tree, row elements/semantics are no longer represented in any form.
How to make responsiveness super simple with CSS Variables
By redefining variables instead of redeclaring styles, we’ve reduced our media query from four selectors down to one and from thirteen lines down to four.
CSS Techniques and Effects for Knockout Text
Method 1: apply one of the four knockout-friendly blend modes to the top layer of a text-image stack and use dark/light (or black/white) color combination on the text and its enclosure. Method 2: set
background-clip
totext
in the element carrying both a background image and a transparent text. Method 3: use CSS masking on a solid foreground with an image behind and dictate the cutout using an SVG text mask.
Videos
You're only supposed to blow the bloody doors off! by Léonie Watson
If you have ever used JavaScript to provide keyboard shortcuts, or used the ARIA application role to enable accessible software UI interactions on the web, there is a good chance it had unintended consequences for screen reader users. Using code examples and screen reader demos, Léonie will look at accessibility mechanics in the browser, the new Accessibility Object Model (AOM) JavaScript API, and how to use JavaScript so you only blow the bloody doors off!
Sponsor
Want Your Link Here?
You can add your link to Friday Front-End by sponsoring an upcoming issue! We only accept one link per issue, so get in touch right away!