Open jakemac53 opened 10 years ago
Here an example: https://ele.io/fedy2/filthy-coffee
Looks like it is caused because of how the visibility css attribute works. Children who have visibility: visible will appear even if their parent has visibility: hidden. This could probably just be changed to use display: none instead of visibility: hidden, but I don't know if there are other reasons that it wasn't done that way in the first place?
display: none;
would be simpler but performance might not work out so well. Have we considered an 'offscreen' classname with 'aria-hidden' toggles?
cc @azakus
@Nevraeka could you clarify your performance concern regarding display: none;
?
There are a couple of ways we could potentially skin this cat without using display: none;
. Automatic aria-hidden
behavior could be added as well, although that sounds orthogonal to the current issue.
see https://github.com/dart-lang/core-elements/issues/128