Opened 15 years ago
Closed 15 years ago
#9783 closed defect (bug) (fixed)
.invisible class doesn't work as expected in some browsers (such as camino, which is FF based)
Reported by: | Denis-de-Bernardy | Owned by: | |
---|---|---|---|
Milestone: | 2.8 | Priority: | high |
Severity: | major | Version: | 2.8 |
Component: | UI | Keywords: | has-patch tested commit dev-feedback |
Focuses: | Cc: |
Description
see attached screenshot.
Attachments (6)
Change History (35)
#2
@
15 years ago
- Keywords has-patch dev-feedback added
scanning through the code base, it only affects legends with a class of invisible.
#8
in reply to:
↑ 7
@
15 years ago
Replying to ryan:
Seeing this with FF 3.5b4 as well.
I'm not surprised, since Camino uses the same engine...
#9
in reply to:
↑ 5
@
15 years ago
Replying to ryan:
A lot of accessibility checkers require fieldsets to have legends.
are the fieldsets truly needed in the first place? because as things currently are, it's *really* ugly. :-)
#12
@
15 years ago
All recommendations I've seen are to use a span inside the legend and hide that. Just asked on twitter and got the same.
#16
@
15 years ago
this worked on my end:
* legend.invisible span { position: absolute; left: -1000em; height: 1px; width: 1px; overflow: hidden; }
patch coming right up.
#17
@
15 years ago
Well, I put the invisible on the span.
<legend><span class="invisible"><?php _e('Admin Color Scheme')?></span></legend>
#20
@
15 years ago
For the .invisible hack, don't you mean to use
display:block; overflow:hidden; text-indent:-1000em;
rather than left-positioning?
#21
follow-up:
↓ 23
@
15 years ago
We want to hide visually without hiding from screen readers. overflow:hidden will hide from screen readers.
#22
@
15 years ago
Heh, looks like we both patched, although I did the invisible on the span. Don't know if one way is better than another.
#23
in reply to:
↑ 21
@
15 years ago
Replying to ryan:
We want to hide visually without hiding from screen readers. overflow:hidden will hide from screen readers.
Oops, misread that overflow as display. We're using one of the recommendations made here:
http://webaim.org/forums/viewtopic.php?id=356
There seem to be a dozen different recommended ways.
#24
@
15 years ago
the invisible is probably better on the legend, you never know if one browser shows up and decides to format that thing in such a way that (since it has content) it ends up generating a big line.
Tried offsetting the margins, using relative positioning with gargantuan margins, !important attribute to css, nothing short of display: none will work.
Camino is a popular browser among Mac users. It's based on Mozilla, but faster due to it using native code.