Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does tts:display affect audio presentation? #1012

Open
nigelmegitt opened this issue Oct 23, 2018 · 9 comments
Open

Does tts:display affect audio presentation? #1012

nigelmegitt opened this issue Oct 23, 2018 · 9 comments
Milestone

Comments

@nigelmegitt
Copy link
Contributor

It is unclear whether setting tts:display="none" prevents visual presentation only or also affects audio presentation. Clarify this, potentially by adding a keyword audio to mean "present in audio form only, not in visual form", and where none means "don't present in any form, visual or audio".

@nigelmegitt nigelmegitt added this to the 2ED milestone Oct 23, 2018
@palemieux
Copy link
Contributor

The tts:display attribute is used to specify a style property that defines whether an element is a candidate for layout and composition in a region.

I do not see how this applies to audio, and recommend defining a new attribute.

@nigelmegitt
Copy link
Contributor Author

The text later on in that section introduces the ambiguity:

if the value is none, then the affected element and its descendants must be considered ineligible for region layout and presentation.

The term presentation is not clearly scoped to visual or audio presentation, or both.

@palemieux
Copy link
Contributor

The term presentation is not clearly scoped to visual or audio presentation, or both.

I do not disagree. tts:display by its very name (and intro) seems pretty scoped.

Isn't there a gain attribute that can be used to mute the audio?

@nigelmegitt
Copy link
Contributor Author

Isn't there a gain attribute that can be used to mute the audio?

There is, but it's not obvious that "not participating in audio presentation" is the same thing as muting the audio.

@nigelmegitt
Copy link
Contributor Author

Looking at prior examples here, the current CSS Display spec points out that display: none; does affect speech, but if you go to CSS 3 Speech then there's a banner to say that it's no longer being worked on. Aside from that, it is clear that setting display: none; results in no text to speech synthesis occurring.

@palemieux
Copy link
Contributor

@nigelmegitt To summarize our earlier discussion: tts:display applies to the span and its contents, regardless of the nature of the latter, and thus presumably audio content, even if display is a misnomer for audio.

@skynavga skynavga self-assigned this Sep 22, 2019
@skynavga
Copy link
Collaborator

So, shall I add a note saying that tts:display='none' suppresses contribution from audio/speech?

@nigelmegitt
Copy link
Contributor Author

@skynavga your proposed note would match current implementation reality I believe; nevertheless I would like to hold off on this for the time being, pending the CSS WG's task force (see w3c/csswg-drafts#560 (comment) and following comments) about this. It could be that we need to make a more significant change.

@skynavga skynavga modified the milestones: 2ED-FPWD, 3ED Sep 30, 2019
@skynavga
Copy link
Collaborator

Moving to 3ED milestone per request to hold off on further action.

@skynavga skynavga removed their assignment Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants