Re: [csswg-drafts] [css-display] create a display property value for visually hiding an element while making it available for AT (#560)

The CSS Working Group just discussed `Display property value for visually hiding element while making available to assistive tech`.

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> Topic: Display property value for visually hiding element while making available to assistive tech<br>
&lt;fantasai> astearns: brought up by TTML also<br>
&lt;jcraig> https://github.com/w3c/csswg-drafts/issues/3708<br>
&lt;fantasai> astearns: question is how to move forward on this capability<br>
&lt;heycam> github: https://github.com/w3c/csswg-drafts/issues/3708<br>
&lt;fantasai> AmeliaBR: The general use case is when you have text that adds a little extra information for assitive technology but either repeats something already visually on the page<br>
&lt;astearns> github: https://github.com/w3c/csswg-drafts/issues/560<br>
&lt;fantasai> AmeliaBR: or is text that is already obvious because of other visual cuse<br>
&lt;fantasai> s/cuse/cues/<br>
&lt;fantasai> AmeliaBR: so don't want to print the text, but want available to a11y<br>
&lt;fantasai> AmeliaBR: there are methods used by authors using absolute positioning or clip<br>
&lt;fantasai> AmeliaBR: intentionally picked by authors because not currently used as cues to screen readers to hide the text<br>
&lt;fantasai> AmeliaBR: so feature requests coming to ARIA and CSS<br>
&lt;fantasai> AmeliaBR: is to have a simple one property one attribute way to do this<br>
&lt;fantasai> AmeliaBR: there are ways in specs defined to do this<br>
&lt;jcraig> Example of what AmeliaBR is referencing: &lt;p>Read &lt;a href=“#”>more &lt;span class=“a11y”>About widgets&lt;/span>&lt;/a>&lt;/p><br>
&lt;fantasai> AmeliaBR: there's aria-hidden=false, originally specified to do this<br>
&lt;astearns> q?<br>
&lt;fantasai> AmeliaBR: there is the 'speak' property in CSS Speech module<br>
&lt;fantasai> https://www.w3.org/TR/css-speech/#speaking-props-speak<br>
&lt;jcraig> hidden=true aria-hidden=false<br>
&lt;fantasai> AmeliaBR: neither of these is implemented because in reality the visual display property has all sorts of side-effects in how elements are processed<br>
&lt;jcraig> aria-hidden=true was problematic for a variety of reasons<br>
&lt;fantasai> AmeliaBR: and saying 'display: none' or visually hidden but still available to AT<br>
&lt;fantasai> AmeliaBR: has never happened in borwsers<br>
&lt;jcraig> s/=true/=false/<br>
&lt;fantasai> AmeliaBR: so feature request is for specific way to do things<br>
&lt;fantasai> AmeliaBR: in ARIA yesterday had a talk about, is this really use case pattern we want to encourage by making it easier to do?<br>
&lt;fantasai> AmeliaBR: visually-hidden styles can be misused by developers<br>
&lt;fantasai> AmeliaBR: who are only thinking about visually-able vs. blind users<br>
&lt;fantasai> AmeliaBR: missing a huge swath of people usign both AT and visual rendering<br>
&lt;fantasai> AmeliaBR: so argument that this is a hacky approach for a reason, shouldn't make it easier<br>
&lt;fantasai> AmeliaBR: but it is widely-used on the Web anyway, so argument for paving that cowpath<br>
&lt;fantasai> AmeliaBR: my recommendation is to go ahead with this<br>
&lt;fantasai> AmeliaBR: and do it in CSS<br>
&lt;fantasai> AmeliaBR: because sometimes visually-hidden content depends on MQ<br>
&lt;jcraig> q+ to remind the group that many (most?) screen reader users are not completely blind...<br>
&lt;fantasai> AmeliaBR: e.g. button might have icon and text on big screen<br>
&lt;fantasai> AmeliaBR: but on small screen only the icon<br>
&lt;fantasai> AmeliaBR: but want AT to be able to see that text<br>
&lt;florian> q+<br>
&lt;astearns> ack jcraig<br>
&lt;Zakim> jcraig, you wanted to remind the group that many (most?) screen reader users are not completely blind...<br>
&lt;fantasai> jcraig: I think this is valuable and needed<br>
&lt;fantasai> jcraig: but remind group that most screen reader users are not blind<br>
&lt;fantasai> jcraig: there are a lot of low-vision users<br>
&lt;fantasai> jcraig: ~ 1/5 are actually blind<br>
&lt;nigel> q+ to point out that for text to describe media content the solution has to work in an ARIA live context<br>
&lt;astearns> ack florian<br>
&lt;fantasai> astearns: Amelia's comment was that this is a bad assumption some authors make, shouldn't encourage<br>
&lt;tink> Q+<br>
&lt;fantasai> florian: the reason why neither ARIA attr or speak has been easy to implement<br>
&lt;fantasai> florian: is because AT works by reading plain text off the render tree<br>
&lt;fantasai> florian: this is the reality today<br>
&lt;fantasai> florian: can't ignore it<br>
&lt;fantasai> florian: but causes many problems<br>
&lt;fantasai> florian: exposing info to AT<br>
&lt;fantasai> florian: I hope this is merely current reality<br>
&lt;fantasai> florian: and not long-term goal we want to maintain<br>
&lt;fantasai> florian: because in that case many limitations<br>
&lt;fantasai> florian: there are many cases where we would want to work from DOM, not render tree<br>
&lt;fantasai> florian: because render tree has lost information that's in the DOM\<br>
&lt;fantasai> florian: I think we will see that problem in a number of use cases<br>
&lt;fantasai> florian: I would like us to not abandon idea that aria / display proposals<br>
&lt;astearns> ack nigel<br>
&lt;Zakim> nigel, you wanted to point out that for text to describe media content the solution has to work in an ARIA live context<br>
&lt;fantasai> florian: I hope this is taken as a current situation, not a design goal, because otherwise many things cannot be solved<br>
&lt;fantasai> nigel: Some of the proposed solutions/hacks might not work for ARIA live environment<br>
&lt;fantasai> nigel: for ? put forward this morning, want something that describes content in a video<br>
&lt;jcraig> q+ to mention that WebKit was the one engine that implemented `hidden=false aria-hidden=true` and I can discuss some of the implementation details<br>
&lt;fantasai> nigel: gets read out during playback of video<br>
&lt;fantasai> nigel: want to use ARIA live region approach<br>
&lt;fantasai> nigel: and have AT notice that<br>
&lt;jcraig> s/live environment/live regions/<br>
&lt;florian> s$that aria / display proposals$that aria / speak proposals$<br>
&lt;fantasai> nigel: biggest gap we have is something that, following from florian's point, here is some text from render tree<br>
&lt;fantasai> nigel: don't actually paint pixesl for it, leave layout alone<br>
&lt;fantasai> nigel: atm visibility: hidden has effect that some screen readers don't read it out<br>
&lt;fantasai> nigel: I would separate visibilty from display<br>
&lt;fantasai> nigel: I would expect display: none to never feature in a display<br>
&lt;fantasai> nigel: but visibilty is not rich enough<br>
&lt;florian> fantasai: visibility hidden currently leave things in the layout tree<br>
&lt;florian> fantasai: so they take up space<br>
&lt;ZoeBijl> q+ to say that there are more assistive technologies than screen readers<br>
&lt;florian> fantasai: we probably want variant that doesn't<br>
&lt;fantasai> jcraig: technique used is positionign off-screen and clipping<br>
&lt;fantasai> nigel: want something more proper<br>
&lt;florian> s/variant/a variant/<br>
&lt;fantasai> astearns: and more simple<br>
&lt;astearns> ack tink<br>
&lt;fantasai> tink: I'm really strongly in favor of this proposal<br>
&lt;fantasai> tink: than existing methods, which cause alls orts of problems<br>
&lt;fantasai> tink: can confirm that visibility: hidden does get hidden from screen readers<br>
&lt;fantasai> tink: if we go ahead with an idea like this attribute<br>
&lt;fantasai> tink: what will we do with tab focus?<br>
&lt;fantasai> tink: techniqe that jcraig describes<br>
&lt;fantasai> tink: tab focus disappears off screen<br>
&lt;fantasai> tink: some renderers will screw up rendering as a result<br>
&lt;fantasai> tink: would there be some mechanism to get around that problem?<br>
&lt;fantasai> AmeliaBR: that's a very good argument for a proper bult-in feature<br>
&lt;fantasai> AmeliaBR: then browser knows to override hiding and make things visible<br>
&lt;fantasai> AmeliaBR: with current techniques, up to author to have a special focus rule<br>
&lt;fantasai> AmeliaBR: to handle that case<br>
&lt;fantasai> AmeliaBR: strong argument to have dedicated feature so browser knows why this style is being set, and to override<br>
&lt;fantasai> tink: so if was focusable content hidden, once it got focus would become visible<br>
&lt;fantasai> tink: makes visible, but if contents appear from off-screen, that would be quite disruptive<br>
&lt;fantasai> tink: is there a possibility to do it the other way around, take things outside of focusability?<br>
&lt;fantasai> AmeliaBR: that wouldn't help with skip links<br>
&lt;fantasai> tink: screenreaders have much better ways to navigate content<br>
&lt;fantasai> tink: skip links are mainly useful for sighted suers<br>
&lt;fantasai> s/sighted suers/sighted keyboard users/<br>
&lt;fantasai> florian: would be problem to make things visible without author expecting it<br>
&lt;fantasai> florian: likely to break things<br>
&lt;jamesn> q+<br>
&lt;fantasai> florian: would rather make it not visible, invoke HTML inert behavior<br>
&lt;fantasai> florian: author can pop things into visual space if they want<br>
&lt;fantasai> AmeliaBR: or maybe two different values of a property, recognize different use cases<br>
&lt;fantasai> AmeliaBR: standard skip link that should become visible<br>
&lt;fantasai> AmeliaBR: and extra information for screen readers<br>
&lt;jcraig> q?<br>
&lt;jcraig> ack me<br>
&lt;Zakim> jcraig, you wanted to mention that WebKit was the one engine that implemented `hidden=false aria-hidden=true` and I can discuss some of the implementation details<br>
&lt;astearns> ack jcraig<br>
&lt;fantasai> jcraig: couple techniques mentioned, one seemed reasonable was HTML hidden=false<br>
&lt;fantasai> jcraig: aria-hidden=true<br>
&lt;fantasai> jcraig: or reverse of that rather<br>
&lt;nigel> q+ to reply<br>
&lt;fantasai> jcraig: webkit was the only browser to implement<br>
&lt;fantasai> jcraig: was very tricky, because webkit builds accessibiltiy tree off of render tree<br>
&lt;fantasai> jcraig: this was after fork from blink, so blink doesn't have<br>
&lt;fantasai> jcraig: firefox same thing<br>
&lt;fantasai> jcraig: so very challenging<br>
&lt;fantasai> jcraig: after noticing bugs<br>
&lt;fantasai> jcraig: decided to only allow this if every ancestor above was displayed<br>
&lt;fantasai> jcraig: so child node could be hidden, but not descendant<br>
&lt;fantasai> jcraig: not sure that's the right path, but is the one available atm<br>
&lt;fantasai> jcraig: technique in the ARIA spec, aria-hidden=false not recommended<br>
&lt;astearns> ack nigel<br>
&lt;Zakim> nigel, you wanted to reply<br>
&lt;fantasai> jcraig: hidden=true aria-hidden=false<br>
&lt;fantasai> nigel: interaction between attributes and CSS properties not clear in spec, and varies in implementations<br>
&lt;fantasai> nigel: there some weird stuff going on there<br>
&lt;fantasai> nigel: my conclusion was to ignore HTML hidden<br>
&lt;fantasai> jcraig: on WebKit side, implementation was hidden=true { display: none; }<br>
&lt;fantasai> Rossen__: Edge actually supports everything you said about computing aria and various permutations<br>
&lt;fantasai> Rossen__: there is an effort that was in EdgeHTML<br>
&lt;fantasai> Rossen__: have ongoing work in Chromium to add additional capabilities to handle that n Chromium-based browsers<br>
&lt;fantasai> Rossen__: not sure where Mozilla is<br>
&lt;fantasai> jcraig: no plans last I heard<br>
&lt;astearns> ack ZoeBijl<br>
&lt;Zakim> ZoeBijl, you wanted to say that there are more assistive technologies than screen readers<br>
&lt;fantasai> ZoeBijl: Want to remidne veryone that there are more AT than just screenreaders that might be affected by this stuff<br>
&lt;astearns> ack jamesn<br>
&lt;fantasai> ?: displaying something ...<br>
&lt;fantasai> ?: Issue of deliberately making things visible<br>
&lt;astearns> s/?/jamesn/<br>
&lt;fantasai> jamesn: another use case is when you have native HTML control that you do not want to display but you want to use all of the properties that you get for free<br>
&lt;fantasai> jamesn: e.g. range control, can't increment/decrement  unless native<br>
&lt;fantasai> jamesn: but can't sytle it properly<br>
&lt;fantasai> jamesn: so hide it, and display your own control over it<br>
&lt;fantasai> jamesn: common authoring technique right now, because can't make controls accessible on moble<br>
&lt;fantasai> jamesn: is one custom control for visual, and one hiden native control for interaction<br>
&lt;fantasai> jamesn: hidden using very low opacity so stll there<br>
&lt;fantasai> jamesn: you wnat it to not be inert in this case<br>
&lt;nigel> scribe: nigel<br>
&lt;nigel> fantasai: we've heard a lot of new info in this meeting<br>
&lt;florian> fantasai: we've heard a lot of new information<br>
&lt;nigel> .. next step is someone to draft a proposal for a new CSS property or value<br>
&lt;nigel> .. probably a property<br>
&lt;jcraig> display value?<br>
&lt;nigel> .. that takes into account the use cases here and the various limitations<br>
&lt;nigel> .. I haven't heard a proposal yet.<br>
&lt;fantasai> astearns: https://github.com/w3c/csswg-drafts/issues/560<br>
&lt;nigel> astearns: Is there a specific CSS spec for this?<br>
&lt;nigel> s/spec/issue<br>
&lt;nigel> fantasai: We definitely don't want to use the display property for this.<br>
&lt;nigel> .. too many other effects.<br>
&lt;nigel> .. There is an existing property in the speech module called speak<br>
&lt;jcraig> q+<br>
&lt;nigel> .. which was intended for this use case but it doesn't address the issues of the render tree and focusability<br>
&lt;nigel> jcraig: I've evidence that it was never intended to address this<br>
&lt;nigel> .. it's well specced for DAISY<br>
&lt;fantasai> jcraig: css-speech is very well-specced for DAISY use case, not for screenreader<br>
&lt;nigel> scribe: fantasai<br>
&lt;astearns> ack jcraig<br>
&lt;jcraig> ack me<br>
&lt;fantasai> astearns: need a volunteer<br>
&lt;fantasai> astearns: lacking a volunteer, keep the issue open and periodically ping people<br>
&lt;fantasai> tink: can try to put words together but need someone on CSS side<br>
&lt;fantasai> AmeliaBR: I can help<br>
&lt;fantasai> ACTION: Amelia and tink to draft a proposal<br>
&lt;trackbot> Created ACTION-883 - And tink to draft a proposal [on Amelia Bellamy-Royds - due 2019-09-24].<br>
&lt;IanPouncey> I can also help.<br>
&lt;fantasai> astearns: and bkardell_<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/560#issuecomment-532035887 using your GitHub account

Received on Tuesday, 17 September 2019 02:50:50 UTC