Closed Bug 473569 Opened 16 years ago Closed 13 years ago

Restrict text-position to allowed values

Categories

(Core :: Disability Access APIs, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla13

People

(Reporter: aaronlev, Assigned: surkov)

References

(Blocks 1 open bug)

Details

(Keywords: access)

Attachments

(1 file)

IA2 text-position officially can only be baseline, super and sub. Currently Firefox will expose anything that the author specified in vertical-align, including top, text-top, middle, bottom, text-bottom, length, %
Will this require a conversion then?  Sounds like new territory.
Attached patch patchSplinter Review
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #601286 - Flags: review?(trev.saunders)
Blocks: 728907
Comment on attachment 601286 [details] [diff] [review]
patch

add bug to test file
Attachment #601286 - Flags: review?(trev.saunders) → review+
ftr we should consider if things like NS_STYLE_VERTICAL_ALIGN_TOP should be consider super or something else.
(In reply to Trevor Saunders (:tbsaunde) from comment #4)
> ftr we should consider if things like NS_STYLE_VERTICAL_ALIGN_TOP should be
> consider super or something else.

the best option I could think of is to ask IA2 group for opinions.
Super/base/sub conveys a certain meaning.  Are there some other meanings that are meant to be conveyed by the various other options?  If so, we can adjust the IA2 spec.
https://hg.mozilla.org/integration/mozilla-inbound/rev/f419ad71f1cd
(In reply to Pete Brunet from comment #6)
> Super/base/sub conveys a certain meaning.  Are there some other meanings
> that are meant to be conveyed by the various other options?  If so, we can
> adjust the IA2 spec.

CSS vertical-align can take several values (see bug description and http://www.w3schools.com/cssref/pr_pos_vertical-align.asp). This patch maps baseline, sub and super values and numeric values to IA2. We don't map things like middle, top, etc to IA2. If AT would need other values then we should extend the list of allowed IA2 values. But then how we should map numeric values to enum list. Pete, should I send a question to IA2 list?
Sub and super convey meaning.  Is any meaning conveyed by the other options?  Or are those other options only for visual effect (artistry).
(In reply to Pete Brunet from comment #9)
> Sub and super convey meaning.  Is any meaning conveyed by the other options?
> Or are those other options only for visual effect (artistry).

maybe they are rather for visual effect. But who can say certainly what authors on the web do.
The IA2 group likely won't be able to help answer that question.  What group can be consulted to get a feel for this?
(In reply to Pete Brunet from comment #11)
> The IA2 group likely won't be able to help answer that question.  What group
> can be consulted to get a feel for this?

I'm not sure that any group can answer that but we might try to get an opinion from web accessibility people like Steve.
(In reply to alexander :surkov from comment #12)
> (In reply to Pete Brunet from comment #11)
> > The IA2 group likely won't be able to help answer that question.  What group
> > can be consulted to get a feel for this?
> 
> I'm not sure that any group can answer that but we might try to get an
> opinion from web accessibility people like Steve.

I would be wary of assigning meaning based on CSS values, including super and sub, the meaning is meant to be assigned using the appropraite HTML elements (http://dev.w3.org/html5/spec/the-sub-and-sup-elements.html#the-sub-and-sup-elements)
https://hg.mozilla.org/mozilla-central/rev/f419ad71f1cd
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
(In reply to steve faulkner from comment #13)

> I would be wary of assigning meaning based on CSS values, including super
> and sub, the meaning is meant to be assigned using the appropraite HTML
> elements
> (http://dev.w3.org/html5/spec/the-sub-and-sup-elements.html#the-sub-and-sup-
> elements)

Ok, let's see if CSS styles causes problems on the web. I filed bug 735645 for sup and sub elements.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: