Tootfinder

Opt-in global Mastodon full text search. Join the index!

@aral@mastodon.ar.al
2024-03-03 13:48:51

You can now create HTML and CSS fragments in Kitten.
This introduces two new file extensions (.fragment.html and .fragment.css) and you can import these fragments into your pages and into other components and fragments as if they were JavaScript modules*.
HTML fragments also support slots.
Example:

Screenshot of terminal window on left, web browser on right.

Terminal window has hx (Helix Editor) 
running, showing 23 lines of code, with the first two highlighted:

import Styles from './Styles.fragment.css'
import Markup from './Markup.fragment.html'

export default async () => kitten.html`
  <page css>
  <h1>HTML and CSS fragments</h1>

  <${Markup}>
    <div>I’m content from index.page.js for the default slot.</div>
    <content for='other'>
      <div>I’m content from index.page.js for …
Screenshot of terminal window showing hx (Helix Editor) with two panes.

Left pane, selected, shows source of Markup.fragment.html:

<div class='box'>
  <p>I’m some HTML from Markup.fragment.html.</p>

  ${SLOT}

  <p>I’m some other HTML Markup.fragment.html.</p>

  ${SLOT.other}
  
  <p>I’m yet more HTML Markup.fragment.html.</p>
</div>

Right pane shows source of Styles.fragment.css:

/* I’m some CSS */
:root {
  --accent-colour: red;
  --border-width: 2px;
}

div {
  border: var(--border-wid…
@aardrian@toot.cafe
2024-05-03 23:24:55

It’s not wrong. But it’s not right, either.
“Creating Fluid Typography with the CSS clamp() Function”
sitepoint.com/fluid-typography

Heading: “A note on accessibility.” Then some code examples, then I highlighted: “I’d recommend defining any font values that you leverage within your code using rem. This is standard best practice these days, and shouldn’t really have to be explained further than the fact that setting 16px (or whatever value you want) as the root font size and using rem as a relative unit of measurement to define font sizes is good for accessibility and user experience.”
@UP8@mastodon.social
2024-04-02 23:05:19

💗 Setting And Persisting Color Scheme Preferences With CSS And A “Touch” Of JavaScript
smashingmagazine.com/2024/03/s

@matthiasott@mastodon.social
2024-04-03 17:48:14

Quick tip: be careful when using the newer #CSS viewport-percentage length units like `svh`, `dvh`, and the like. They are well-supported since late 2022 and quite a few users might still be using older (Android) devices and browsers. So always make sure to test on a few real devices (thanks to my parents in law for their Galaxy Tab 4 😁) and provide fallbacks, e.g. with `vh`.

@aardrian@toot.cafe
2024-05-03 14:31:17

Added the poorly-named Looper Mini Web Machine to my post “CSS-only Widgets Are Inaccessible”:
adrianroselli.com/2023/03/css-
They’re just mis-used radio buttons.
I have no idea …

@keithjgrant@front-end.social
2024-02-29 16:38:47

Leap day, MEAP day!
All Manning early access books are 50% off today, including CSS in Depth
manning.com/books/css-in-depth

Leap Day, MEAP Day! Half off all MEAPs
@aral@mastodon.ar.al
2024-04-03 17:55:36

Oh how useful text-emphasis would be if it didn’t affect line height.
#CSS

@usul@piaille.fr
2024-03-03 15:53:29

Why I use Firefox
xn--ime-zza.eu/3

@keithjgrant@front-end.social
2024-05-03 21:13:11

🔗 An Alternative Proposal for CSS Masonry
My initial gut reaction was of course masonry should be part of grid, but Rachel makes some very good points here. Whole segments of the grid specification would have to be ignored for a masonry layout, which she itemizes well. The way it would break grid-template-areas is a huge deal, IMO; that is the primary way a lot of developers use and understand grid. I think Rachel is right. Something like

@matthiasott@mastodon.social
2024-05-02 12:54:18

My son asked for a little web dev challenge, so I tasked him with filtering a list with a few selects.
First of all: he solved it! 🥳
But when I looked at the code, I noticed that he had used HTML data attributes and was accessing them in JS via the dataset property. When I asked him about it, he replied: “Yes, I read that in a post by @… on …

@mro@digitalcourage.social
2024-02-29 11:57:04

#Peak #Leap #Year

@adamhotep@infosec.exchange
2024-04-04 14:00:24

Yikes. @… has coined the term "Kobold Letters", which use CSS nesting in email to make text invisible until it is forwarded. Clever and dangerous. There is an infinite number of ways to render text invisible, so this is basically impossible to stop.
lutrasecurity.com/en/articles/ via @…

@aardrian@toot.cafe
2024-04-03 17:53:54

“Hanging punctuation in CSS ”
adactio.com/journal/21027
I wanted to avoid an additional selector to undo the style, but Safari 17.3 Does not exclude any in the `:not()`:
```
html :not(pre, input, select, textarea) {
hanging-punctuation: first last;
}

@catsalad@infosec.exchange
2024-04-01 19:00:53

Cw: center


<style type="text/css">
.extracenter {
align-content: center;
align-items: center;
align-self: center;
justify-self: center;
justify-items: center;
justify-content: center;
place-content: center;
place-itens: center;
text-align: center;
margin-inline: auto;
margin-right: auto;
margin-left: auto;
margin: auto;
display: flex;
left: 50%;
right: 50%;
margin: auto;
line-height: 100%;
position: absolute;
vertical-align: middle;
transform: translate(-50%, -50%);
}
</style>
`<div class="extracenter">🏢</div>`
@hey@social.nowicki.io
2024-03-03 18:29:04

Moved kukei.eu website from CF Pages to express so it runs on my PC.
See a massive perf improvements as the website backend doesn't need to talk CF -> PC to get search index data and MongoDB stuff. Now it talks localhost in both way so the only round trip is between the user and the website server.
Drop is: 3s for entire document to 419ms (including search results generation!)

@khalidabuhakmeh@mastodon.social
2024-02-26 15:56:27

Over the last few weeks, I’ve been a really big fan of PicoCSS. Drop a #CSS file in an #HTML file, write some semantic HTML, and it looks nice.
picocs…

@kexpmusicbot@mastodonapp.uk
2024-03-29 12:20:15

🔊 #NowPlaying on KEXP's #Early
CSS:
🎵 Let’s Make Love and Listen to Death From Above
#CSS
open.spotify.com/track/1Jd9W7k
ahistoryofemptyrooms.bandcamp.

@roland@devdilettante.com
2024-03-26 14:37:15

How To: Get all links with a CSS class and open them to find out redirects for translations of Thunderbird Knowledge Base articles using Ruby and Nokogiri: rolandtanglao.com/2024/03/26/p

@NicolasGriseyDemengel@piaille.fr
2024-03-29 20:30:47

leereamsnyder.com/write-css-no

@aardrian@toot.cafe
2024-04-01 13:58:44

Just updated my 2014 post “W3C CSS Odor Module Released” to mention GameScent, which spews smells at your face while you game:
adrianroselli.com/2012/04/w3c-

@texttheater@mastodon.social
2024-02-24 18:44:13

‘Within a month, its advent would have spawned a hundred thousand “hey guys!!” Youtube videos, 67 hastily written books, and 31 video courses hosted by creepy, immaculately preened white dudes.’
What is Utility-First CSS?: HeydonWorks
heydonworks.com/article/what-i

@FerdiZ@mastodon.cloud
2024-02-29 03:34:21

Nice! Old-school blogroll button in HTML CSS:
🤖 codepen.io/adamrice/pen/GReVPV
/by @… via @…

@UP8@mastodon.social
2024-03-26 22:18:24

🧱 Nue CSS: A scaleable alternative to Tailwind, BEM, and CSS-in-JS
#css

@joannalaine@hachyderm.io
2024-04-30 03:05:21

Months ago, we implemented heap.io for website analytics. We chose it for its autocapture feature. The promise was that as long as we had elements that could be located with CSS, we wouldn't need to define events before deploying code. Events could be defined at any time and work retroactively. It kinda worked, until we found out that their CSS selectors have DOM character limits. Say a section is locatable with "[content-type='hero']". Inside is a button with "[co…

@krasse_eloquenz@literatur.social
2024-04-02 16:05:07

Learning des heutigen Tages: Hacking ist gar nicht so schwer, wie ich dachte, ha!
Ich bin davon ausgegangen, dass man profunde IT-Kenntnisse benötigt, bevor man überhaupt anfängt. (Benötigt man sicherlich auch bei komplexeren Websites.)
Aber für semiprofessionelle Websites reichen einfach ein paar HTML-, CSS- und JavaScript-Kenntnisse für Einsteiger – oder nicht mal die. 1/2

@lukem@hachyderm.io
2024-03-28 15:12:00

Today for the first time ever I used CSS :has pseudo-class. Surprisingly, it happened at work, in a React project, because the hook-based logic was too convoluted to get the thing done.
I distinctly remember when I had to rewrite portions of my current blog template because :has wasn't supported in Firefox yet.
Viva la web.
#css

@arXiv_hepph_bot@mastoxiv.page
2024-03-04 08:42:32

This arxiv.org/abs/2311.16402 has been replaced.
initial toot: mastoxiv.page/@arXiv_hepp…

@datascience@genomic.social
2024-04-29 10:00:01

If you use Quarto to make presentations for a professional setting, it is important to choose the right theme, e.g. #rstats

@thek3nger@mastodon.social
2024-02-28 16:29:15

I had a lot of fun (and frustration) developing a pure-CSS contraption that takes plain book cover images and assembles a small gallery. 😁
1) It adds a "bevel gradient" to give the effect of a book cover.
2) It sets the background gradient.
3) And it pseudorandomly tilts the books.
#css #webdev

An example of a component gallery for books covers. It shows three books (Kill It with Fire, Around the World in 80 Games, and Stolen Focus) on a orange-gray gradient background. The books are gently tilted in random directions.
@keithjgrant@front-end.social
2024-02-28 01:04:37

A common talking point of CSS & separation of concerns is the idea that you can just swap out the CSS for different CSS to have a whole new design.
That’s neat and all, but the real-world need is the opposite: the HTML changes ALL. THE. TIME. Write your CSS so it works with changing content.
#css #webdev

@toxi@mastodon.thi.ng
2024-03-17 16:04:19

Today's #ReleaseSunday features a major update for the thi.ng/meta-css toolchain, a data-driven codegen for creating custom modular CSS frameworks, incl. transpiler, bundler, dev/watch mode...…

Screenshot of a concise MetaCSS stylesheet snippet, showing the declaration of an oklch() color variable (using the def-oklch() template/function), its use as link color and the creation of a derived/adjusted color for link hover states...

The source code reads:

:root {
  // define an oklch() color variable called "link-color"
  def-oklch(link-color, 80, 100, 0, 1)
}

// use color variable to set text color
a:link, a:visited { color (link-color) }

// use an adiusted version for l…
Transpiled resulting CSS of the MetaCSS declerations in the previous image, showing the expanded variable definitions and calculations to create the derived color...

CSS source code:

:root {
	--link-color-luma: 80%;
	--link-color-chroma: 100%;
	--link-color-hue: 0;
	--link-color-alpha: 1;
	--link-color: oklch(
		var(--link-color-luma)
		var(--link-color-chroma)
		var(--link-color-hue) /
		var(--link-color-alpha)
	);
}

a:link, a:visited {
	color: var(--link-color);
}

a:h…
@aral@mastodon.ar.al
2024-03-26 10:40:39

Thanks to a prod from @…, I finally fixed the issue with full-screen videos looking inverted on my personal site in dark mode.
Also, just updated my blog post on how to implement quick and dirty dark mode support in a few lines of code using CSS filters with the additional code:

@arXiv_csIT_bot@mastoxiv.page
2024-03-04 08:31:55

This arxiv.org/abs/2312.15308 has been replaced.
link: scholar.google.com/scholar?q=a

@chris_hayes@fosstodon.org
2024-04-23 20:51:29

TIL `scrollbar-gutter: stable;`
It reserves space on the screen for the scrollbar so the page doesn't jump on scrollbar appearing / disappearing. I've started using the Transitions API and this CSS property is really clutch with Transitions.
Waiting on Safari to ship support though.
(75% support) <…

@hey@social.nowicki.io
2024-03-03 18:29:04

Moved kukei.eu website from CF Pages to express so it runs on my PC.
See a massive perf improvements as the website backend doesn't need to talk CF -> PC to get search index data and MongoDB stuff. Now it talks localhost in both way so the only round trip is between the user and the website server.
Drop is: 3s for entire document to 419ms (including search results generation!)

@thibaultmol@en.osm.town
2024-02-07 13:39:27

This a pretty wild bit of CSS:
camp2.rectangle.zone/index.php
As someone else said "This is the loudest silent animation I’ve…

@inthehands@hachyderm.io
2024-02-10 19:08:29

CSS is dandy. The DOM is great. Web development is fine. This is fine.
stackoverflow.com/a/77974405/2

@philip@mastodon.mallegolhansen.com
2024-04-30 22:53:48

@… 3. Also related, yet feels somewhat separate: The cool whacky sites out there.
Again, maybe they exist now and we just aren’t sharing them, but I feel like I see a lot less “experiments” on the web. Sites that use HTML, CSS, and JS to just do something cool and unexpected. From playing fart noises to making cool colorful animations. I just don’t see t…

@jkohlmann@mastodon.social
2024-03-27 18:52:41

Am I imagining things, or are there features in web browsers’ developer tools to detect synthesized / faux font weights? #webdev #WebDevelopment #CSS

@keithjgrant@front-end.social
2024-04-03 23:46:38

Does the new CSS light-dark() do anything to support sites that have a light mode/dark mode toggle switch?

@cheeaun@mastodon.social
2024-02-28 15:10:31

Wondering if a no-CSS no-JS embed code would be useful or make sense? 🤔
#PhanpySocialDev (not on dev site yet) #MastoDev

Demo of Embed code functionality on Phanpy, that shows a modal that renders the embed HTML code for a post.
@fanf@mendeddrum.org
2024-03-30 17:42:03

amitp.blogspot.com/2021/06/fir - Firefox 89 tab appearance fixes with userchrome.css.

@arXiv_quantph_bot@mastoxiv.page
2024-04-30 07:19:00

GNarsil: Splitting Stabilizers into Gauges
Oskar Novak, Narayanan Rengaswamy
arxiv.org/abs/2404.18302 arxiv.org/pdf/2…

@aardrian@toot.cafe
2024-03-03 05:54:11

Not sure I can trust Digital Ocean as far as I can swim in it. Assuming this is really the CEO and it is really “committed” to CSS Tricks.
twitter.com/paddix/status/1763

@Schrank@phpc.social
2024-02-13 14:31:23

How to get the #css default back after setting a property on an element with #javascript? In my case display - element.style.removeProperty('display')!

@sofia@chaos.social
2024-02-27 21:54:03

been working on the CSS for my CV/portfolio/job-application stuff. even though i can't really imagine getting a job any time soon…
first order of business was cleaning it up using nesting selectors. it's nice, quite a bit cleaner. and how much memory did i save? it's a whole -29 bytes smaller now 🤔!
also damn, having "artifical intelligence" in my CVs interests section sounds soo damn lame now 😅.

@joannalaine@hachyderm.io
2024-04-30 03:05:21

Months ago, we implemented heap.io for website analytics. We chose it for its autocapture feature. The promise was that as long as we had elements that could be located with CSS, we wouldn't need to define events before deploying code. Events could be defined at any time and work retroactively. It kinda worked, until we found out that their CSS selectors have DOM character limits. Say a section is locatable with "[content-type='hero']". Inside is a button with "[co…

@tylersticka@social.lol
2024-04-09 15:45:54

I think #CSSNakedDay is a fun idea!
I’m not participating myself, as I haven’t had time to fix my inline navigation SVGs looking confusingly *noir* without their CSS fills. But you should give these sites a visit!

@keithjgrant@front-end.social
2024-04-24 18:23:23

Manning Flash Sale! 50% off all MEAPS today only.
Use code flash0424au to get half off CSS in Depth, Second Edition and loads of other great books
manning.com/books/css-in-depth

Flash sale today only! 50% off all MEAPs. Use code flash0424au
@aral@mastodon.ar.al
2024-03-25 11:16:11

Just learned from @… that the text-wrap property in #CSS has two new(ish) values: balance and pretty.
“The balance value is good for headings, and tries to balance the number of characters on each line so that each line of the heading is about the same lengt…

@al3x@hachyderm.io
2024-03-25 17:59:12

Public request for help & suggestions: **I want to learn modern CSS**.
I have tried my hand using a CSS framework and had some success, but not reproducible and understandable success.
Where do I start?

@matthiasott@mastodon.social
2024-04-02 09:50:01

I just let Claude write a short article about :has() as a test and while it got browser support wrong (probably because of older training data) the code examples turned out far better than those in the latest piece by DigitalOcean on CSS-Tricks… 🫣

@thomasfuchs@hachyderm.io
2024-03-10 15:35:42

❌ Writing CSS to avoid style tags
❌ Writing JavaScript to avoid writing CSS
❌ Writing TypeScript to avoid writing JavaScript
❌ Writing WASM to avoid writing TypeScript
✅ Using an LLM to avoid using brain
social.lol/@bw/112063887344206

@stephane_klein@mamot.fr
2024-02-15 10:14:14

Je viens de découvrir la fonctionnalité "#CSS container queries" qui a été introduite dans #Chrome en septembre 2022 et pour #Firefox en février 2023.
J'ai souvent eu besoin de cette fonctionnalité, je vais e…

@cark@social.tchncs.de
2024-04-27 20:37:25

#TIL
CSS-Code inklusive media-queries lässt sich in SVG-Dateien einbetten. Dadurch können Grafiken unkompliziert einen dark mode bekommen. Sehr nützlich für den anstehenden relaunch der Seite von @…

@tezoatlipoca@mas.to
2024-03-29 16:32:03

I'm polishing the front end of a petproject and Im researching front-end design ideology. Right now it just spits out html with class attributes that tie in with a very rudimentary stylesheet.
The goal is allow user css customization of every element but also ensure its not *too* flexible as to break accessibility. So for example, striking a balance between html tables or just dumping everyting as divs and spans and let the grids/flexboxes sort it out.

@matthiasott@mastodon.social
2024-04-02 09:50:01

I just let Claude write a short article about :has() as a test and while it got browser support wrong (probably because of older training data) the code examples turned out far better than those in the latest piece by DigitalOcean on CSS-Tricks… 🫣

@hey@social.nowicki.io
2024-03-02 11:33:08

@… laughing in the voice of that person who did the talk about doing css design for email templates during last @…

@keithjgrant@front-end.social
2024-02-21 23:19:14

🔗 What is Utility-First CSS?
“Utility-first CSS is more radical. Utility-first CSS is exception-first CSS. And that’s not how exceptions work, in CSS or in general.”
Man, I love the Heydon snark on this one. He lays it on thick, and he’s spot on.
heydonworks.com/article/what-i

@mro@digitalcourage.social
2024-03-07 12:27:04

Scalable #CSS@…
chriscoyier.net/2023/01/17/sca

@aardrian@toot.cafe
2024-02-29 22:42:44

I rushed out a leap day post. Something something February 29.
“Techniques to Break Words”
#CSS

@aral@mastodon.ar.al
2024-03-25 10:57:55

Quick heads up, highlight.js now correctly highlights code in namespaced tagged template strings (e.g., kitten.html``, kitten.css``, etc.)
github.com/highlightjs/highlig
(And Kitten comes with highlight.js baked in. See it in use in t…

@aardrian@toot.cafe
2024-03-24 23:58:57

CSS-Tricks might be back?
This first post in nearly a year is authored by a Digital Ocean dev advocate:
“Accessible Forms with Pseudo Classes”
css-tricks.com/accessible-form
Yes, …

For readers, I want to caution against following both the examples in this post exactly.

If you are going to color the background of the entire form, then consider something that does not have such a dramatic contrast difference. For some readers too much of a change (dark to light, for example) can cause pain. If they are using a screen magnifier then their entire screen could become a glare fest. A subtler change, such as a semi-transparent color might be better.

Scaling text (even making i…
@toxi@mastodon.thi.ng
2024-03-16 21:59:32

VERY disappointed in GitHub refusing to support the LaTeX `\colorbox` (outright banned) or `\textcolor` macros (seemingly only very limited support) or any CSS solution to allow one to create colored text in Markdown files... I was hoping to create color swatches as shown in the attached preview (in VSCode), but just none of this works on GitHub...
(And yes, I understand there're some potential accessibility issues, but there're more social solutions to address these than an ou…

Screenshot of VSCode split-screen editor of a Markdown file containing a long list of colors. The left pane shows the MD source code, the right pane the rendered preview, incl. color swatches (as background colors)
@cark@social.tchncs.de
2024-04-27 20:37:25

#TIL
CSS-Code inklusive media-queries lässt sich in SVG-Dateien einbetten. Dadurch können Grafiken unkompliziert einen dark mode bekommen. Sehr nützlich für den anstehenden relaunch der Seite von @…

@aardrian@toot.cafe
2024-05-01 22:17:23

Holy cow this piece of custom CSS on YouTube results pages is ace:
```
ytd-shelf-renderer {
display: none;
}
```
*Seems* to get rid of the ‘recommended’ and ‘nobody also watched’ boxes where YouTube stuffs all the white supremacist shit (or in my case, videos of kids getting life sentences and videos of blisters).

@khalidabuhakmeh@mastodon.social
2024-04-09 18:06:22

The #css :has selector is a godsend. It's incredible how far styling has come on the internet.
OK, back to making my site banner.

CSS :has demo
@matthiasott@mastodon.social
2024-02-05 20:54:23

Nice! Noise!
@… writes about how he discovered that you can make some hacky noise with CSS gradients
#CSS! #CSS!

@aardrian@toot.cafe
2024-05-01 22:17:23

Holy cow this piece of custom CSS on YouTube results pages is ace:
```
ytd-shelf-renderer {
display: none;
}
```
*Seems* to get rid of the ‘recommended’ and ‘nobody also watched’ boxes where YouTube stuffs all the white supremacist shit (or in my case, videos of kids getting life sentences and videos of blisters).

@aardrian@toot.cafe
2024-02-28 19:42:09

ICYMI, Chrome has said it intends to prototype the CSS property `reading-order-items`:
groups.google.com/a/chromium.o
If this is new to you, I cover the broad challenges with readi…

@toxi@mastodon.thi.ng
2024-03-16 21:59:32

VERY disappointed in GitHub refusing to support the LaTeX `\colorbox` (outright banned) or `\textcolor` macros (seemingly only very limited support) or any CSS solution to allow one to create colored text in Markdown files... I was hoping to create color swatches as shown in the attached preview (in VSCode), but just none of this works on GitHub...
(And yes, I understand there're some potential accessibility issues, but there're more social solutions to address these than an ou…

Screenshot of VSCode split-screen editor of a Markdown file containing a long list of colors. The left pane shows the MD source code, the right pane the rendered preview, incl. color swatches (as background colors)
@keithjgrant@front-end.social
2024-02-07 17:00:07

Three more chapters just dropped in the CSS in Depth MEAP!
Learn about web typography, gradients, and a whole array of effects like blend modes, filters, masks, and shapes.
manning.com/books/css-in-depth

@matthiasott@mastodon.social
2024-03-27 16:56:31

I *still* would love to be able to strip the unit from a value by dividing by 1 unit in #CSS calc()… 🤔

@aardrian@toot.cafe
2024-02-21 21:10:11

I am not such a CSS purist that I think utility classes have no place in development, but I do find advocating utility-first approaches (never mind the toxic bro culture driven by Tailwind’s CEO) to be a strong signal of being a wanker.
Heydon is more verbose:
heydonworks.com/article/wha…

@hey@social.nowicki.io
2024-03-29 22:10:14

@… Im particularly happy with finding "overline" text-decoration in CSS specs.

@aral@mastodon.ar.al
2024-03-13 20:18:56

New in Kitten¹: Markdown fragments
You can now write your Markdown in separate .fragment.md files and `import()` them as if they were JavaScript modules, just like you can with HTML and CSS fragments.
And while they don’t support props, they do support slots (including named slots, which you can use as poor man’s props.)
Enjoy!
:kitten: 💕
¹

Screenshot of code open in Helix Editor (active tab: index.page.js, inactive tabs: Markdown.fragment.md, Markup.fragment.md, Styles.fragment.md):

import Markup from './Markup.fragment.html'
import Styles from './Styles.fragment.css'
import Markdown from './Markdown.fragment.md'

export default () => kitten.html
  <page css>
  <${Markup} />

  <${Markdown}>
    <content for='title'>This is the title</content>
    <content for='date'>${new Date()}</content>
    <button>I’ve been slotted in.</but…
Screenshot of code for Markdown.fragment.md:

## And this is from a markdown file

As is this.

- Title: __${SLOT.title}__
- Date: __${SLOT.date}__

${SLOT}

And the content above was slotted into a markdown file.
Screenshot of code for Markup.fragment.html:

<div>
  <h1>This is from an HTML fragment.</h1>
  <p>As is this.</p>
</div>
Screenshot of the resulting page, rendered in a web browser:

H1: This is from an HTML fragment.

Paragraph: As is this.

H2: And this is from a markdown file

Paragraph: As is this.

List item: Title: This is the title

List item: Date: Wed Mar 13 2024 20:07:03 GMT+0000 (Greenwich Mean Time)

Button: I’ve been slotted in.

Paragraph: And the content above was slotted into a markdown file.
@keithjgrant@front-end.social
2024-03-05 22:15:19

@scope is now live in both Chrome and Safari! This is huge for #CSS. The remaining days of BEM are numbered!
keithjgrant.com/posts/2023/04/

@aardrian@toot.cafe
2024-03-22 20:21:20

#CSUNATC
CSS Accessibility: Inclusion Through User Choice
noti.st/cariefisher/qQ4jqu/css

@keithjgrant@front-end.social
2024-03-05 22:15:19

@scope is now live in both Chrome and Safari! This is huge for #CSS. The remaining days of BEM are numbered!
keithjgrant.com/posts/2023/04/

@aardrian@toot.cafe
2024-04-25 14:08:18

Using this CSS with broken image ref:
```
::before {
content: url(foo) / "Panda";
}
```
Safari / macOS / iPadOS does not show the alt.
Until you turn on VO. Or turn it off. But it goes away if you refresh.
More accurately, it resizes the placeholder; if your alt is small enough to fit *then* it shows.
Attached video shows it in action.
So. What the deal is?
Test page:

A series of broken images that, when VoiceOver is activated, resize and show the alt text from the CSS declaration. Reloading the page makes them go away. Turning off VO makes them come back.
@matthiasott@mastodon.social
2024-03-12 14:11:10

🤔 I’m preparing my #CSSDay talk at the moment and I’d be glad to hear your thoughts:
In which areas do you see the most potential for innovative web design when it comes to the latest and greatest #CSS features?
Like, which CSS features would you recommend a designer (or developer) to learn …

@aardrian@toot.cafe
2024-04-25 14:08:18

Using this CSS with broken image ref:
```
::before {
content: url(foo) / "Panda";
}
```
Safari / macOS / iPadOS does not show the alt.
Until you turn on VO. Or turn it off. But it goes away if you refresh.
More accurately, it resizes the placeholder; if your alt is small enough to fit *then* it shows.
Attached video shows it in action.
So. What the deal is?
Test page:

A series of broken images that, when VoiceOver is activated, resize and show the alt text from the CSS declaration. Reloading the page makes them go away. Turning off VO makes them come back.
@aardrian@toot.cafe
2024-04-19 13:49:18

Looks like fifth time might be the charm for Chrome to implement keyboard-friendly scrolling areas:
developer.chrome.com/blog/chro
Updated my post: