CSS by T. Afif :verified: on Nostr: a11y question: Let's suppose I have an empty html element somewhere on the page with ...
a11y question: Let's suppose I have an empty html element somewhere on the page with 0 content, invisible*, having position:absolute (or fixed). It has no purpose in the HTML (only used for some CSS stuff).
Is it a good idea to add the "inert" attribute? Or should I do nothing?
* It may or may not have a size, but no style to make it visible.
#A11y #HTML
Published at
2026-09-26 21:26:31 UTCEvent JSON
{
"id": "365dd2aee0dc68d3e6867e7dd24294f8a785b7aa191e07c9dbb2d9433655d9ca",
"pubkey": "280fb867495777c13d273ac66bc631c7d39399eebb2948ffa0bab360fb53212b",
"created_at": 1790457991,
"kind": 1,
"tags": [
[
"t",
"html"
],
[
"proxy",
"https://front-end.social/@css/117339454943042596",
"web"
],
[
"t",
"a11y"
],
[
"proxy",
"https://front-end.social/users/css/statuses/117339454943042596",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://front-end.social/users/css/statuses/117339454943042596",
"pink.momostr"
],
[
"-"
]
],
"content": "a11y question: Let's suppose I have an empty html element somewhere on the page with 0 content, invisible*, having position:absolute (or fixed). It has no purpose in the HTML (only used for some CSS stuff).\n\nIs it a good idea to add the \"inert\" attribute? Or should I do nothing?\n\n* It may or may not have a size, but no style to make it visible.\n\n#A11y #HTML",
"sig": "3484a34d2ac8473fc946725389de295dafe239bd1bb2f17d3d10dcd4e066af6aec00c141b3a2f9b7031f3de5b33f9d8820fd84b26d3a2a58c91de31d5e1d39b4"
}