The default bug view has changed. See this FAQ.

Restrict text-position to allowed values

RESOLVED FIXED in mozilla13

Status

()

Core
Disability Access APIs
RESOLVED FIXED
8 years ago
5 years ago

People

(Reporter: Aaron Leventhal, Assigned: surkov)

Tracking

(Blocks: 1 bug, {access})

unspecified
mozilla13
x86
All
access
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

8 years ago
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.
(Assignee)

Comment 2

5 years ago
Created attachment 601286 [details] [diff] [review]
patch
Assignee: nobody → surkov.alexander
Status: NEW → ASSIGNED
Attachment #601286 - Flags: review?(trev.saunders)
(Assignee)

Updated

5 years ago
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.
(Assignee)

Comment 5

5 years ago
(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.

Comment 6

5 years ago
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.
(Assignee)

Comment 7

5 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/f419ad71f1cd
(Assignee)

Comment 8

5 years ago
(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?

Comment 9

5 years ago
Sub and super convey meaning.  Is any meaning conveyed by the other options?  Or are those other options only for visual effect (artistry).
(Assignee)

Comment 10

5 years ago
(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.

Comment 11

5 years ago
The IA2 group likely won't be able to help answer that question.  What group can be consulted to get a feel for this?
(Assignee)

Comment 12

5 years ago
(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.

Comment 13

5 years ago
(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
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
(Assignee)

Comment 15

5 years ago
(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.