Skip to content
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

CSS pixels: How to measure CSS pixel equivalents for systems with closed functionality #227

Closed
melaniephilipp opened this issue Sep 29, 2023 · 16 comments

Comments

@melaniephilipp
Copy link

melaniephilipp commented Sep 29, 2023

@melaniephilipp wrote on 2023-09-29:

Do you have any guidance on how to measure the CSS pixel equivalents for macOS software, Window software, or systems with closed functionality for testing purposes?

Edit 2023-12-03: I am splitting this request into two parts. The present issue will address only closed functionality. Issue #200 will address macOS and Windows software. — @mitchellevan

@patrickhlauke
Copy link
Member

patrickhlauke commented Sep 29, 2023

The equivalent concept to the CSS pixel for macOS (and iOS/iPadOS) software development is the "point" pt (Apple's density independent pixel equivalent) - not to be confused with the actual typographic pt as measured with a ruler in the real world, of course

@melaniephilipp
Copy link
Author

Right. I'm asking about how to measure the CSS pixel equivalents for macOS software, Window software, or systems with closed functionality for testing purposes.

@maryjom
Copy link
Contributor

maryjom commented Oct 2, 2023

Thank you for taking the time to review the WCAG2ICT public draft. Our task force will review your comment and develop a response that we hope will address your concern. The response will be drafted in a comment on this issue, marked DRAFT RESPONSE until the Task Force reaches consensus.

@samogami samogami closed this as completed Oct 3, 2023
@samogami samogami reopened this Oct 3, 2023
@samogami
Copy link

samogami commented Oct 3, 2023

The comment relates to issue #200

@mraccess77
Copy link

There are pixel rules apps for some platforms like Android and Windows that display a pixel rule as an overlay on top of the software being tested - this likely would only work for open software and not closed software.

@patrickhlauke
Copy link
Member

However, you may not want a "pixel ruler", but an "Apple's pt ruler" or similar (yes, they'll often be the same in effect)

@samogami
Copy link

Not all non web software or closed systems have a css pixel equivalent. When an equivalent does not exist SC with css should not apply.

@Mstanic05
Copy link

Can you assign this to me!

@maryjom
Copy link
Contributor

maryjom commented Oct 26, 2023

Can you assign this to me!

Not if you are not in the WCAG2ICT Task Force.

@mitchellevan
Copy link
Contributor

@Mstanic05, thanks for your earlier offer. We welcome any feedback that you might wish to contribute. However, @maryjom is correct that our Task Force will be responsible for answering the public comments on our FPWD (First Public Working Draft).

@mitchellevan mitchellevan changed the title CSS pixels CSS pixels: How to measure CSS pixel equivalents for systems with closed functionality Dec 3, 2023
@mitchellevan
Copy link
Contributor

I have split this request into two parts. The present issue will address only closed functionality. Issue #200 will address macOS and Windows software.

@mitchellevan
Copy link
Contributor

@maryjom, as we discussed I've unassigned myself from this issue, so I can concentrate on other issues. In our weekly call we'll make sure to get it reassigned.

Following are my views.

@samogami wrote:

Not all non web software or closed systems have a css pixel equivalent. When an equivalent does not exist SC with css should not apply.

The first sentence is certainly true. Regarding the second sentence, "not apply": This is not WCAG2ICT Task Force consensus. Rather, our draft Applying "CSS pixel" to Non-Web Documents and Software says the following, which I predict for closed functionality will be the more common of the two measures:

When there is no platform-defined density-independent pixel measurement, the reference pixel size can be approximated ... Determine a viewing distance [and] Divide the viewing distance by 2688.

This is the same calculation as for CSS pixels in web content. A web page can render in browsers on with a wide variety of devices, with viewing distances and form factors ranging from wearables to smart TVs. So viewing distance calculations should yield results within similar ranges for closed functionality that they do for web content.

That said, the original question was not just about "how to calculate" but also "how to measure". On this I agree with Mary Jo's comment in issue 200:

... it isn't up to WCAG2ICT to define or list those tools. We could simply mention that some platforms have available measurement tools.

@mitchellevan

This comment was marked as outdated.

@pday1
Copy link
Contributor

pday1 commented Feb 8, 2024

Changes agreed from task force meeting today:

Change penultimate paragraph:
If you use the method of viewing distance: Calculate the reference pixel size as described in the Notes in the WCAG2ICT guidance for the definition of "CSS pixel".

Add sentence:
There may or may not be software tools available to measure.

@maryjom
Copy link
Contributor

maryjom commented Feb 8, 2024

FINAL TASK FORCE REPLY:

Thank you for your question about how to measure a CSS pixel. As noted in my 2023-12-03 edit to the issue, we will address only closed functionality in the present issue. (For the other half of your question, see #200.)

There are two parts to this question.

Part 1: How can a person determine the meaning of "CSS pixel" on a given platform?

The WCAG2ICT update includes Guidance When Applying “CSS pixel” to Non-Web Documents and Software. This guidance describes how the "CSS pixel" (as used in WCAG) can be approximated using one of two methods:

  • Based on a platform-defined density-independent pixel, or
  • Based on a viewing distance for a display type.

These two methods can be used for closed functionality software. Some closed functionality software runs on a platform that is open enough for the first method to be practical. Other closed functionality software runs on a specific hardware device, such as a self-service terminal or kiosk, where the physical screen might be known.

Part 2: Using "CSS pixels" as the unit, how can a person measure parts of the user interface of closed functionality software?

If you use the platform-defined density-independent pixel method: Obtain a software tool that allows developers or testers to measure content in the density-independent pixel unit of the platform.

If you use the method of viewing distance: Calculate the reference pixel size as described in the Notes in the WCAG2ICT guidance for the definition of "CSS pixel".

It is not feasible for this Task Force to list more specific measurement tools for these methods. There may or may not be software tools available to measure. As a result, WCAG2ICT document will not be changed.

@maryjom maryjom removed the Surveying label Feb 8, 2024
@maryjom
Copy link
Contributor

maryjom commented Mar 19, 2024

Closing as answered.

@maryjom maryjom closed this as completed Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants