-
Notifications
You must be signed in to change notification settings - Fork 26
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
Do we want to map inline divs as spans and block spans as divs? #183
Comments
@joanmarie if as I suspect |
We would need to take into consideration other Or is it more a question of "inline" vs "not-inline" that we need to be mindful of? |
Doing a quick test of various display values using this https://www.w3schools.com/cssref/playit.asp?filename=playcss_display&preval=inline looks like the are variances across browsers as to effect and yes I think we need to take this into account, to try to get convergence/agreement on effect across browsers. |
I don't think it's a good idea to consider CSS properties. So far there has been a relatively clear separation between them:
I think it would be good to keep this separation. Otherwise it becomes endless: why should display:inline/block/inline-block etc. only be relevant for span and div and not for all other HTML elements. And why only display and not other CSS properties? Like float (see FreedomScientific/standards-support#247). And when span and div get different rules regarding the labeling (#160), it gets even more complex. |
If an author takes a
div
and CSSes it into being inline and looking like aspan
, should it still be mapped as if it were adiv
? Similarly, if an author turns aspan
into a block element via CSS so that it functions like it were adiv
, should it still be mapped as aspan
?In other words, do we want to (continue to) base our mapping on the official element, or on how it is functioning? I'm leaning towards the latter, but I think we all need to weigh in and discuss.
Related: As part of ARIA's role parity work, we will be creating a generic role to which
div
andspan
(and other block and inline elements) will correspond. The question is how we should map them in the Core-AAM. And we want to be aligned with HTML-AAM.The text was updated successfully, but these errors were encountered: