Re: [blink-dev] PSA: Browser text zoom on Android will now work like it does on desktop

2024-02-02 Thread 'Mark Schillaci' via blink-dev
Just to loop back on this - Page Zoom does not affect WebView. The custom
text zoom of WebView was not changed.

Sorry for the delay :p.

On Wed, Aug 2, 2023 at 11:14 AM Torne (Richard Coles) 
wrote:

> This mentions it's supported in Android WebView, but WebView has always
> used the font size specified in the OS to scale text specifically (*not* to
> scale CSS pixels):
> https://source.chromium.org/chromium/chromium/src/+/main:android_webview/java/src/org/chromium/android_webview/AwSettings.java;l=296;drc=334d01268df246e959b238956ab956413562edfb
>
> Does this change actually affect WebView? If so, how? If it ends up
> stacking with the text zoom we are already doing then the results may not
> be desirable.
>
> On Wed, 2 Aug 2023 at 13:27, 'Jonathan Bernal' via blink-dev <
> blink-dev@chromium.org> wrote:
>
>> Contact emails
>>
>> mschill...@google.com, rayjonath...@google.com, p...@google.com,
>> ikilpatr...@google.com, aldi...@google.com, chris...@google.com
>>
>>
>> Explainer
>>
>>
>> https://docs.google.com/document/d/1vRVRJFaY3TWRFkrKvLhhiBemTfFxUzI_co4YZq_kB0E/edit
>>
>>
>> Summary
>>
>> Browser text zoom on Android will now work like it does on desktop. See
>> https://blog.google/products/android/new-android-features-february-2023/
>> for a blog post about it. The default rendered zoom value of a given page
>> will transparently account for a user’s OS-level font size setting. This
>> means that any user on Android who has a non-default OS-level font size
>> setting (~40% of users), will use a non-100% zoom on Android Chrome by
>> default. This feature is currently released to 10% of stable users.
>>
>>
>> How to opt into the feature:
>>
>>1.
>>
>>Go to chrome://flags
>>2.
>>
>>Search for "Accessibility Page Zoom”
>>3.
>>
>>Use the dropdown box to switch the feature from “Default” to “Enabled”
>>4.
>>
>>Restart Chrome (force quit)
>>
>>
>> How to use the feature:
>> https://support.google.com/chrome/answer/96810?co=GENIE.Platform%3DAndroid=1
>> Blink component
>>
>> Compositor
>>
>>
>> Risks
>>
>>-
>>
>>This will change the overall distribution of window.innerWidth values
>>a website sees, which may be unexpected.
>>-
>>
>>Don't currently have any provision for opting out specific origins
>>(eg. overriding the default zoom level back to 100%) if breakage is
>>discovered.
>>
>>
>> Will this feature be supported on all six Blink platforms (Windows, Mac,
>> Linux, Chrome OS, Android, and Android WebView)?
>>
>> Android and Android WebView
>>
>>
>> Is this feature fully tested by web-platform-tests
>> 
>> ?
>>
>> No
>>
>>
>> Flag name
>>
>> Accessibility Page Zoom
>> Requires code in //chrome?
>>
>> Yes
>>
>>
>> Tracking bug
>>
>> https://bugs.chromium.org/p/chromium/issues/detail?id=645717
>>
>>
>> Launch bug
>>
>> https://launch.corp.google.com/launch/4206588 (sorry, Googlers only)
>>
>>
>> Estimated milestones
>>
>> M113
>> Link to entry on the Chrome Platform Status
>>
>> N/A
>>
>>
>> Links to previous Intent discussions
>>
>> N/A
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "blink-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to blink-dev+unsubscr...@chromium.org.
>> To view this discussion on the web visit
>> https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CA%2B8nQZ6JJHyUXC5fofsnSW2gAi64Xqe7WHus94FqQs%3DFMS1qOA%40mail.gmail.com
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to blink-dev+unsubscr...@chromium.org.
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK9iZJj_-VGd_nyLFc2becK9UjbqR5pAn%3D6hvNNHOYHXfZofQQ%40mail.gmail.com.


[blink-dev] Intent to Prototype: Honoring Android OS-Level bold text setting

2023-11-13 Thread 'Mark Schillaci' via blink-dev
Contact emailsmschill...@google.com

Explainer
https://docs.google.com/document/d/12K06qDhiJo9inhDIfj3rOCY54xQjgUpv2Y5gaIhjCqE/edit?usp=sharing=0-ZNiuGN9gAy_nXte_11_G7A

SpecificationNone

Summary

Honor the Android OS-level bold text setting by applying the option to all
web contents. Help users who need more contrast in their fonts for
increased readability, by adding support for text being always bold.


Blink componentBlink>Compositing


Motivation

The W3C Accessibility Requirements for People with Low Vision (last
updated: March 2016), has long established that users need the ability to
adjust user interfaces to meet their needs. In Section 3.3.3 Style, it is
explicitly stated that a user needs to be able to “change the text style
(underline, italic, *bold*) of blocks of text.”


Initial public proposal
https://bugs.chromium.org/p/chromium/issues/detail?id=1450007

TAG reviewNone

TAG review statusPending

Risks


Interoperability and Compatibility

None


*Gecko*: No signal

*WebKit*: No signal

*Web developers*: TBD

*Other signals*:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that
it has potentially high risk for Android WebView-based applications?

None


Debuggability

None

Is this feature fully tested by web-platform-tests

?No

Flag name on chrome://flagsNone

Finch feature namePlanned: AccessibilityOSLevelBoldText

Non-finch justificationN/A

Requires code in //chrome?True (prefs)

Estimated milestones

No milestones specified


Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5084282104315904

This intent message was generated by Chrome Platform Status
.

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to blink-dev+unsubscr...@chromium.org.
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK9iZJg2WGVwm9qtcPmWnQPsksJcZxoWhMgHJNx2eknJZuZx2g%40mail.gmail.com.


[blink-dev] PSA: Web contents will honor the Android OS bold text setting

2023-11-09 Thread 'Mark Schillaci' via blink-dev
Title:

Intent to Ship: Honoring Android OS-Level Bold Text Settings

Body:

Contact emails

mschill...@google.com, dr...@google.com

Explainer

Help users who need more contrast in their fonts for increased readability,
by adding support for a new Android a11y API that opts into text being
always bold.

Spec

No formal design doc

Relevant CL: crrev.com/c/4809211

The FontBuilder::CreateFont method (link
)
will include a call to a new method, FontBuilder::UpdateWeightAdjustment
(see CL). This adjustment will be added to the current font weight and
clamped to the min/max weight values for that font. The font weight
adjustment can be any number; but with the current Android OS it will be 0
by default (no bolding), or 300 when a user has enabled bold text. For
example, a font with weight 400 would become weight 700 when the user has
enabled the OS-level setting. This will apply to all elements on the web.

Summary

The Android OS has an accessibility option to enable “Bold text”. When
enabled, all content rendered by Android will be in bold. We intend to make
this user setting affect web contents in addition to the native OS widgets.

Supporting Links

No formal explainer doc

Configuration.java:
https://developer.android.com/reference/android/content/res/Configuration#fontWeightAdjustment

Android 12 announcement: https://www.android.com/android-12/

Google support page:
https://support.google.com/accessibility/android/answer/11183305?hl=en

Demo link

Video link (Alphabet internal)


Screenshots of the feature enabled without and with bold text user setting:



Motivation

This is an accessibility feature, and we want parity between the web and
Android OS.

Risks

Interoperability and Compatibility

No interoperability or compatibility risks as this is an Android only
feature. This will not run on any other platforms.

Solving the intended problem

See demo.

Ergonomics

This feature is likely to be used in parallel to text size scaling or page
zooming, since both are intended to assist low-vision users.

Activation

No

Is this feature supported on all six Blink platforms (Windows, Mac, Linux,
Chrome OS, Android, and Android WebView)?

No, this is an Android only feature. It is controlled by a setting that is
only available in the Android OS-level settings.

Is this feature fully tested by web-platform-tests

?

Progressed upstreamed.

Link to entry on the feature dashboard 

https://chromestatus.com/feature/5145839765028864

Requesting approval to ship?

Yes



 Honoring Android OS-Level Bold Text Settings


-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to blink-dev+unsubscr...@chromium.org.
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAK9iZJhOp1f3T_RriDOsYMGDxoUeD%2BkYFnqFuQz%3D_bBX%3D0p%3D0w%40mail.gmail.com.