News for hackers. Stuff that matters.
Re:A Blog Post with Every HTML Element by nine_k on Saturday August 12, 2023 @11:19PM (#37106370)
Why should it be a part of CSS, that handles visual representation, and not part of HTML, which handles data, structure, and semantics?

I wonder if a whitespace <div> with a right aria-label could fit the bill.

Re:A Blog Post with Every HTML Element by zerocrates on Saturday August 12, 2023 @11:38PM (#37106458)
CSS's display: none already affects what the screenreaders can "see." So it's already involved.
Re:A Blog Post with Every HTML Element by zamadatix on Sunday August 13, 2023 @10:28AM (#37110339)
And getting sick is a great reason you might use the phone to call into work but it doesn't imply getting sick is therefor the way to run all other phone usage through. I.e. it changes the behavior of the screen reader because it hides the content of the document and a screen reader knows it doesn't make sense to read content that was removed but that doesn't provide any support for why content which only affects screen readers belongs in the styling language as well.

Further point, in case you still disagree whether it makes sense for CSS to include the ability or not: CSS supports pseudo-elements but that doesn't mean tags in your page should be turned into pseudo-elements just because you can.

Re:A Blog Post with Every HTML Element by eismeer on Sunday August 13, 2023 @01:18AM (#37106916)
> I wonder if a whitespace <div> with a right aria-label could fit the bill.

Aria-label only works on interactive elements. I believe except the div has a `role`, screenreaders will ignore the label.