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

[web] Text is clipped on some browsers in TextField and Text Widget #61614

Closed
jmshrv opened this issue Jul 16, 2020 · 28 comments
Closed

[web] Text is clipped on some browsers in TextField and Text Widget #61614

jmshrv opened this issue Jul 16, 2020 · 28 comments
Labels
a: text input Entering text in a text field or keyboard related problems a: typography Text rendering, possibly libtxt browser: firefox only manifests in Firefox c: rendering UI glitches reported at the engine/skia rendering level e: web_html HTML rendering backend for Web engine flutter/engine repository. See also e: labels. framework flutter/packages/flutter repository. See also f: labels. P2 Important issues not at the top of the work list platform-web Web applications specifically

Comments

@jmshrv
Copy link

jmshrv commented Jul 16, 2020

Steps to Reproduce

  1. Download the example project: bug_report.zip.
  2. Run the project with flutter run.
  3. Open the website in Firefox.
  4. Type some text in the text box. Lowercase Gs are particularly bad.
  5. Open the website in Chrome or use a useragent switcher in Firefox.
  6. Type some text in the text box. There will be no clipping, even if you're in Firefox pretending to be Chrome with the useragent switcher.

Expected results:

This:
image

This was taken on Firefox with a useragent switcher.

image

Actual results:

This:
image

This was taken on Firefox without any useragent modifications.

Logs
[  +80 ms] executing: [/home/james/Android/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +18 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 9c4a5ef1ed2bc88960fbf3b04d7bafd1c630414b
[        ] executing: [/home/james/Android/flutter/] git tag --contains HEAD
[ +124 ms] Exit code 0 from: git tag --contains HEAD
[   +2 ms] executing: [/home/james/Android/flutter/] git describe --match *.*.*-*.*.pre --first-parent --long --tags
[  +10 ms] Exit code 0 from: git describe --match *.*.*-*.*.pre --first-parent --long --tags
[        ] 1.20.0-7.0.pre-125-g9c4a5ef1ed
[   +5 ms] executing: [/home/james/Android/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +3 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/master
[        ] executing: [/home/james/Android/flutter/] git ls-remote --get-url origin
[   +2 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +28 ms] executing: [/home/james/Android/flutter/] git rev-parse --abbrev-ref HEAD
[   +3 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] master
[  +26 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[   +7 ms] executing: /home/james/Android/Sdk/platform-tools/adb devices -l
[  +24 ms] List of devices attached
[   +2 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +44 ms] Running "flutter pub get" in bug_report...
[   +2 ms] executing: [/home/james/bug_report/] /home/james/Android/flutter/bin/cache/dart-sdk/bin/pub --verbose get --no-precompile
[  +31 ms] FINE: Pub 2.9.0-21.0.dev.flutter-89fe12b12a
[  +37 ms] MSG : Resolving dependencies...
[  +25 ms] SLVR: fact: bug_report is 1.0.0+1
[   +3 ms] SLVR: derived: bug_report
[  +17 ms] SLVR: fact: bug_report depends on flutter any from sdk
[        ] SLVR: fact: bug_report depends on cupertino_icons ^0.1.3
[        ] SLVR: fact: bug_report depends on flutter_test any from sdk
[        ] SLVR:   selecting bug_report
[        ] SLVR:   derived: flutter_test any from sdk
[        ] SLVR:   derived: cupertino_icons ^0.1.3
[        ] SLVR:   derived: flutter any from sdk
[   +7 ms] SLVR:   fact: flutter_test 0.0.0 from sdk depends on flutter any from sdk
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on test_api 0.2.17
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on path 1.7.0
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on fake_async 1.1.0
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on clock 1.0.1
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on stack_trace 1.9.5
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on vector_math 2.1.0-nullsafety
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on async 2.4.2
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on boolean_selector 2.0.0
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on characters 1.1.0-nullsafety
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on charcode 1.1.3
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on collection 1.15.0-nullsafety
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on matcher 0.12.8
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on meta 1.3.0-nullsafety
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on source_span 1.7.0
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on stream_channel 2.0.0
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on string_scanner 1.0.5
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on term_glyph 1.1.0
[        ] SLVR:   fact: flutter_test 0.0.0 from sdk depends on typed_data 1.3.0-nullsafety
[        ] SLVR:     selecting flutter_test 0.0.0 from sdk
[        ] SLVR:     derived: typed_data 1.3.0-nullsafety
[        ] SLVR:     derived: term_glyph 1.1.0
[        ] SLVR:     derived: string_scanner 1.0.5
[        ] SLVR:     derived: stream_channel 2.0.0
[        ] SLVR:     derived: source_span 1.7.0
[        ] SLVR:     derived: meta 1.3.0-nullsafety
[        ] SLVR:     derived: matcher 0.12.8
[        ] SLVR:     derived: collection 1.15.0-nullsafety
[        ] SLVR:     derived: charcode 1.1.3
[        ] SLVR:     derived: characters 1.1.0-nullsafety
[        ] SLVR:     derived: boolean_selector 2.0.0
[        ] SLVR:     derived: async 2.4.2
[        ] SLVR:     derived: vector_math 2.1.0-nullsafety
[        ] SLVR:     derived: stack_trace 1.9.5
[        ] SLVR:     derived: clock 1.0.1
[        ] SLVR:     derived: fake_async 1.1.0
[        ] SLVR:     derived: path 1.7.0
[        ] SLVR:     derived: test_api 0.2.17
[   +5 ms] SLVR:       selecting cupertino_icons 0.1.3
[   +5 ms] SLVR:       fact: flutter 0.0.0 from sdk depends on characters 1.1.0-nullsafety
[        ] SLVR:       fact: flutter 0.0.0 from sdk depends on collection 1.15.0-nullsafety
[        ] SLVR:       fact: flutter 0.0.0 from sdk depends on meta 1.3.0-nullsafety
[        ] SLVR:       fact: flutter 0.0.0 from sdk depends on typed_data 1.3.0-nullsafety
[        ] SLVR:       fact: flutter 0.0.0 from sdk depends on vector_math 2.1.0-nullsafety
[        ] SLVR:       fact: flutter 0.0.0 from sdk depends on sky_engine any from sdk
[        ] SLVR:         selecting flutter 0.0.0 from sdk
[        ] SLVR:         derived: sky_engine any from sdk
[   +3 ms] SLVR:         fact: typed_data 1.3.0-nullsafety depends on collection >=1.15.0-nnbd <1.15.0
[        ] SLVR:           selecting typed_data 1.3.0-nullsafety
[   +2 ms] SLVR:             selecting term_glyph 1.1.0
[   +2 ms] SLVR:             fact: string_scanner 1.0.5 depends on charcode ^1.1.0
[        ] SLVR:             fact: string_scanner 1.0.5 depends on meta ^1.1.0
[        ] SLVR:             fact: string_scanner 1.0.5 depends on source_span ^1.4.0
[        ] SLVR:               selecting string_scanner 1.0.5
[   +2 ms] SLVR:               fact: stream_channel 2.0.0 depends on async >=1.11.0 <3.0.0
[        ] SLVR:                 selecting stream_channel 2.0.0
[   +2 ms] SLVR:                 fact: source_span 1.7.0 depends on charcode ^1.0.0
[        ] SLVR:                 fact: source_span 1.7.0 depends on collection ^1.8.0
[        ] SLVR:                 fact: source_span 1.7.0 depends on meta >=0.9.0 <2.0.0
[        ] SLVR:                 fact: source_span 1.7.0 depends on path ^1.2.0
[        ] SLVR:                 fact: source_span 1.7.0 depends on term_glyph ^1.0.0
[        ] SLVR:                   selecting source_span 1.7.0
[        ] SLVR:                     selecting meta 1.3.0-nullsafety
[   +2 ms] SLVR:                     fact: matcher 0.12.8 depends on stack_trace ^1.2.0
[        ] SLVR:                       selecting matcher 0.12.8
[   +2 ms] SLVR:                         selecting collection 1.15.0-nullsafety
[   +7 ms] SLVR:                           selecting charcode 1.1.3
[        ] SLVR:                             selecting characters 1.1.0-nullsafety
[        ] SLVR:                             fact: boolean_selector 2.0.0 depends on source_span ^1.0.0
[        ] SLVR:                             fact: boolean_selector 2.0.0 depends on string_scanner ^1.0.0
[        ] SLVR:                               selecting boolean_selector 2.0.0
[   +1 ms] SLVR:                               fact: async 2.4.2 depends on collection ^1.5.0
[        ] SLVR:                                 selecting async 2.4.2
[   +1 ms] SLVR:                                   selecting vector_math 2.1.0-nullsafety
[   +1 ms] SLVR:                                   fact: stack_trace 1.9.5 depends on path ^1.2.0
[        ] SLVR:                                     selecting stack_trace 1.9.5
[   +1 ms] SLVR:                                     fact: clock 1.0.1 depends on meta >=0.9.0 <2.0.0
[        ] SLVR:                                       selecting clock 1.0.1
[   +1 ms] SLVR:                                       fact: fake_async 1.1.0 depends on clock ^1.0.0
[        ] SLVR:                                       fact: fake_async 1.1.0 depends on collection ^1.8.0
[        ] SLVR:                                         selecting fake_async 1.1.0
[        ] SLVR:                                           selecting path 1.7.0
[   +2 ms] SLVR:                                           fact: test_api 0.2.17 depends on async ^2.0.0
[        ] SLVR:                                           fact: test_api 0.2.17 depends on boolean_selector >=1.0.0 <3.0.0
[        ] SLVR:                                           fact: test_api 0.2.17 depends on collection ^1.8.0
[        ] SLVR:                                           fact: test_api 0.2.17 depends on meta ^1.1.5
[        ] SLVR:                                           fact: test_api 0.2.17 depends on path ^1.2.0
[        ] SLVR:                                           fact: test_api 0.2.17 depends on source_span ^1.4.0
[        ] SLVR:                                           fact: test_api 0.2.17 depends on stack_trace ^1.9.0
[        ] SLVR:                                           fact: test_api 0.2.17 depends on stream_channel >=1.7.0 <3.0.0
[        ] SLVR:                                           fact: test_api 0.2.17 depends on string_scanner ^1.0.0
[        ] SLVR:                                           fact: test_api 0.2.17 depends on term_glyph ^1.0.0
[        ] SLVR:                                           fact: test_api 0.2.17 depends on matcher >=0.12.6 <0.12.9
[        ] SLVR:                                             selecting test_api 0.2.17
[        ] SLVR:                                               selecting sky_engine 0.0.99 from sdk
[   +3 ms] SLVR: Version solving took 0:00:00.096449 seconds.
[        ]     | Tried 1 solutions.
[        ] FINE: Resolving dependencies finished (0.120s).
[  +24 ms] IO  : Writing 3498 characters to text file ./pubspec.lock.
[        ] FINE: Contents:
[        ]     | # Generated by pub
[        ]     | # See https://dart.dev/tools/pub/glossary#lockfile
[        ]     | packages:
[        ]     |   async:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: async
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "2.4.2"
[        ]     |   boolean_selector:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: boolean_selector
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "2.0.0"
[        ]     |   characters:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: characters
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.1.0-nullsafety"
[        ]     |   charcode:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: charcode
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.1.3"
[        ]     |   clock:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: clock
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.0.1"
[        ]     |   collection:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: collection
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.15.0-nullsafety"
[        ]     |   cupertino_icons:
[        ]     |     dependency: "direct main"
[        ]     |     description:
[        ]     |       name: cupertino_icons
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "0.1.3"
[        ]     |   fake_async:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: fake_async
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.1.0"
[        ]     |   flutter:
[        ]     |     dependency: "direct main"
[        ]     |     description: flutter
[        ]     |     source: sdk
[        ]     |     version: "0.0.0"
[        ]     |   flutter_test:
[        ]     |     dependency: "direct dev"
[        ]     |     description: flutter
[        ]     |     source: sdk
[        ]     |     version: "0.0.0"
[        ]     |   matcher:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: matcher
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "0.12.8"
[        ]     |   meta:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: meta
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.3.0-nullsafety"
[        ]     |   path:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: path
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.7.0"
[        ]     |   sky_engine:
[        ]     |     dependency: transitive
[        ]     |     description: flutter
[        ]     |     source: sdk
[        ]     |     version: "0.0.99"
[        ]     |   source_span:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: source_span
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.7.0"
[        ]     |   stack_trace:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: stack_trace
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.9.5"
[        ]     |   stream_channel:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: stream_channel
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "2.0.0"
[        ]     |   string_scanner:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: string_scanner
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.0.5"
[        ]     |   term_glyph:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: term_glyph
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.1.0"
[        ]     |   test_api:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: test_api
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "0.2.17"
[        ]     |   typed_data:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: typed_data
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "1.3.0-nullsafety"
[        ]     |   vector_math:
[        ]     |     dependency: transitive
[        ]     |     description:
[        ]     |       name: vector_math
[        ]     |       url: "https://pub.dartlang.org"
[        ]     |     source: hosted
[        ]     |     version: "2.1.0-nullsafety"
[        ]     | sdks:
[        ]     |   dart: ">=2.9.0-18.0 <2.9.0"
[        ] IO  : Writing 1979 characters to text file ./.packages.
[        ] FINE: Contents:
[        ]     | # Generated by pub on 2020-07-16 13:48:44.432312.
[        ]     | async:file:///home/james/.pub-cache/hosted/pub.dartlang.org/async-2.4.2/lib/
[        ]     | boolean_selector:file:///home/james/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.0.0/lib/
[        ]     | characters:file:///home/james/.pub-cache/hosted/pub.dartlang.org/characters-1.1.0-nullsafety/lib/
[        ]     | charcode:file:///home/james/.pub-cache/hosted/pub.dartlang.org/charcode-1.1.3/lib/
[        ]     | clock:file:///home/james/.pub-cache/hosted/pub.dartlang.org/clock-1.0.1/lib/
[        ]     | collection:file:///home/james/.pub-cache/hosted/pub.dartlang.org/collection-1.15.0-nullsafety/lib/
[        ]     | cupertino_icons:file:///home/james/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-0.1.3/lib/
[        ]     | fake_async:file:///home/james/.pub-cache/hosted/pub.dartlang.org/fake_async-1.1.0/lib/
[        ]     | flutter:file:///home/james/Android/flutter/packages/flutter/lib/
[        ]     | flutter_test:file:///home/james/Android/flutter/packages/flutter_test/lib/
[        ]     | matcher:file:///home/james/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.8/lib/
[        ]     | meta:file:///home/james/.pub-cache/hosted/pub.dartlang.org/meta-1.3.0-nullsafety/lib/
[        ]     | path:file:///home/james/.pub-cache/hosted/pub.dartlang.org/path-1.7.0/lib/
[        ]     | sky_engine:file:///home/james/Android/flutter/bin/cache/pkg/sky_engine/lib/
[        ]     | source_span:file:///home/james/.pub-cache/hosted/pub.dartlang.org/source_span-1.7.0/lib/
[        ]     | stack_trace:file:///home/james/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.9.5/lib/
[        ]     | stream_channel:file:///home/james/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.0.0/lib/
[        ]     | string_scanner:file:///home/james/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.0.5/lib/
[        ]     | term_glyph:file:///home/james/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.1.0/lib/
[        ]     | test_api:file:///home/james/.pub-cache/hosted/pub.dartlang.org/test_api-0.2.17/lib/
[        ]     | typed_data:file:///home/james/.pub-cache/hosted/pub.dartlang.org/typed_data-1.3.0-nullsafety/lib/
[        ]     | vector_math:file:///home/james/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.0-nullsafety/lib/
[        ]     | bug_report:lib/
[        ] MSG : Got dependencies!
[        ] IO  : Writing 4498 characters to text file ./.dart_tool/package_config.json.
[        ] FINE: Contents:
[        ]     | {
[        ]     |   "configVersion": 2,
[        ]     |   "packages": [
[        ]     |     {
[        ]     |       "name": "async",
[        ]     |       "rootUri": "file:///home/james/.pub-cache/hosted/pub.dartlang.org/async-2.4.2",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.2"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "boolean_selector",
[        ]     |       "rootUri": "file:///home/james/.pub-cache/hosted/pub.dartlang.org/boolean_selector-2.0.0",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.4"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "characters",
[        ]     |       "rootUri": "file:///home/james/.pub-cache/hosted/pub.dartlang.org/characters-1.1.0-nullsafety",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.9"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "charcode",
[        ]     |       "rootUri": "file:///home/james/.pub-cache/hosted/pub.dartlang.org/charcode-1.1.3",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.0"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "clock",
[        ]     |       "rootUri": "file:///home/james/.pub-cache/hosted/pub.dartlang.org/clock-1.0.1",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.0"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "collection",
[        ]     |       "rootUri": "file:///home/james/.pub-cache/hosted/pub.dartlang.org/collection-1.15.0-nullsafety",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.9"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "cupertino_icons",
[        ]     |       "rootUri": "file:///home/james/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-0.1.3",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.0"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "fake_async",
[        ]     |       "rootUri": "file:///home/james/.pub-cache/hosted/pub.dartlang.org/fake_async-1.1.0",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.2"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "flutter",
[        ]     |       "rootUri": "file:///home/james/Android/flutter/packages/flutter",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.9"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "flutter_test",
[        ]     |       "rootUri": "file:///home/james/Android/flutter/packages/flutter_test",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.2"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "matcher",
[        ]     |       "rootUri": "file:///home/james/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.8",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.4"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "meta",
[        ]     |       "rootUri": "file:///home/james/.pub-cache/hosted/pub.dartlang.org/meta-1.3.0-nullsafety",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.9"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "path",
[        ]     |       "rootUri": "file:///home/james/.pub-cache/hosted/pub.dartlang.org/path-1.7.0",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.0"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "sky_engine",
[        ]     |       "rootUri": "file:///home/james/Android/flutter/bin/cache/pkg/sky_engine",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "1.11"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "source_span",
[        ]     |       "rootUri": "file:///home/james/.pub-cache/hosted/pub.dartlang.org/source_span-1.7.0",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.6"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "stack_trace",
[        ]     |       "rootUri": "file:///home/james/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.9.5",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.0"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "stream_channel",
[        ]     |       "rootUri": "file:///home/james/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.0.0",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.0"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "string_scanner",
[        ]     |       "rootUri": "file:///home/james/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.0.5",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.0"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "term_glyph",
[        ]     |       "rootUri": "file:///home/james/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.1.0",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "1.8"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "test_api",
[        ]     |       "rootUri": "file:///home/james/.pub-cache/hosted/pub.dartlang.org/test_api-0.2.17",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.7"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "typed_data",
[        ]     |       "rootUri": "file:///home/james/.pub-cache/hosted/pub.dartlang.org/typed_data-1.3.0-nullsafety",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.9"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "vector_math",
[        ]     |       "rootUri": "file:///home/james/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.0-nullsafety",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.9"
[        ]     |     },
[        ]     |     {
[        ]     |       "name": "bug_report",
[        ]     |       "rootUri": "../",
[        ]     |       "packageUri": "lib/",
[        ]     |       "languageVersion": "2.7"
[        ]     |     }
[        ]     |   ],
[        ]     |   "generated": "2020-07-16T12:48:44.443226Z",
[        ]     |   "generator": "pub",
[        ]     |   "generatorVersion": "2.9.0-21.0.dev.flutter-89fe12b12a"
[        ]     | }
[  +17 ms] Running "flutter pub get" in bug_report... (completed in 0.3s)
[ +100 ms] Generating /home/james/bug_report/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +36 ms] Launching lib/main.dart on Web Server in debug mode...
[  +33 ms] Updating assets
[  +53 ms] Syncing files to device Web Server...
[  +23 ms] Generating /home/james/bug_report/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +22 ms] <- reset
[   +4 ms] /home/james/Android/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /home/james/Android/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root /home/james/Android/flutter/bin/cache/flutter_web_sdk/ --incremental --target=dartdevc --debugger-module-names
--experimental-emit-debug-metadata -Ddart.developer.causal_async_stacks=true --output-dill /tmp/flutter_tools.ETTDCK/flutter_tool.HQJDPL/app.dill --libraries-spec file:///home/james/Android/flutter/bin/cache/flutter_web_sdk/libraries.json --packages .packages -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation --filesystem-root /tmp/flutter_tools.ETTDCK/flutter_tools.CXNJJD --filesystem-scheme org-dartlang-app --initialize-from-dill
build/cache.dill.track.dill --platform file:///home/james/Android/flutter/bin/cache/flutter_web_sdk/kernel/flutter_ddc_sdk.dill
[   +6 ms] <- compile org-dartlang-app:/web_entrypoint.dart
[+10199 ms] Syncing files to device Web Server... (completed in 10,255ms, longer than expected)
[        ] Synced 23.8MB.
[        ] <- accept
[        ] Caching compiled dill
[  +12 ms] lib/main.dart is being served at http://localhost:46523
[        ] The web-server device requires the Dart Debug Chrome extension for debugging. Consider using the Chrome or Edge devices for an improved development workflow.
[   +3 ms] Warning: Flutter's support for web development is not stable yet and hasn't
[        ] been thoroughly tested in production environments.
[        ] For more information see https://flutter.dev/web
[        ] 🔥  To hot restart changes while running, press "r" or "R".
Running "flutter pub get" in bug_report...                          0.2s
Analyzing bug_report...                                                 

   info • Unused import: 'package:bug_report/main.dart' • test/widget_test.dart:11:8 • unused_import
  error • The function 'MyApp' isn't defined • test/widget_test.dart:16:29 • undefined_function

2 issues found. (ran in 8.4s)
[✓] Flutter (Channel master, 1.20.0-8.0.pre.125, on Linux, locale en_GB.UTF-8)
    • Flutter version 1.20.0-8.0.pre.125 at /home/james/Android/flutter
    • Framework revision 9c4a5ef1ed (16 hours ago), 2020-07-15 21:41:27 +0100
    • Engine revision 774ae0313d
    • Dart version 2.9.0 (build 2.9.0-21.0.dev 89fe12b12a)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at /home/james/Android/Sdk
    • Platform android-30, build-tools 30.0.1
    • Java binary at: /opt/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[!] Android Studio (version 4.0)
    • Android Studio at /opt/android-studio
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] Connected device (1 available)
    • Web Server (web) • web-server • web-javascript • Flutter Tools

! Doctor found issues in 2 categories.

Additional notes:

This same issue was reported and fixed in #49946, flutter/engine#16994. The issue seems to have come back. The issue is present in both beta and master.

@GaryQian GaryQian added a: text input Entering text in a text field or keyboard related problems a: typography Text rendering, possibly libtxt platform-web Web applications specifically labels Jul 16, 2020
@yjbanov yjbanov added e: web_html HTML rendering backend for Web c: rendering UI glitches reported at the engine/skia rendering level P2 Important issues not at the top of the work list labels Jul 16, 2020
@yjbanov
Copy link
Contributor

yjbanov commented Jul 16, 2020

/cc @mdebbar wondering if there's something with text measurement in FF

@jhonatn
Copy link

jhonatn commented Jul 23, 2020

I got to reproduce this on my GitHub Page (source here) and, as someone mentioned here, this issue disappears if you change your user agent to a Chrome one

@TahaTesser
Copy link
Member

Hi @UnicornsOnLSD
i am not able to reproduce this issue in Firefox.

Screenshot from 2020-07-23 19-48-48
image

Code Sample
import 'package:flutter/material.dart';

void main() {
  runApp(BugReport());
}

class BugReport extends StatelessWidget {
  const BugReport({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: MainScreen(),
    );
  }
}

class MainScreen extends StatefulWidget {
  MainScreen({Key key}) : super(key: key);

  @override
  _MainScreenState createState() => _MainScreenState();
}

class _MainScreenState extends State<MainScreen> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Bug Report"),
      ),
      body: Center(
        child: TextField(),
      ),
    );
  }
}


flutter doctor -v
[✓] Flutter (Channel master, 1.21.0-2.0.pre.95, on Mac OS X 10.15.6 19G73, locale en-GB)
    • Flutter version 1.21.0-2.0.pre.95 at /Users/tahatesser/Code/flutter_master
    • Framework revision 50b87dc6c3 (19 hours ago), 2020-07-22 11:09:59 -0700
    • Engine revision dcc9a4048d
    • Dart version 2.9.0 (build 2.9.0-21.0.dev 9dca49e71e)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-30, build-tools 30.0.1
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.6, Build version 11E708
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.47.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.12.2

[✓] Connected device (5 available)
    • SM M305F (mobile)      • 32003c30dc19668f          • android-arm64  • Android 10 (API 29)
    • Taha’s iPhone (mobile) • 00008020-001059882212002E • ios            • iOS 13.6
    • macOS (desktop)        • macos                     • darwin-x64     • Mac OS X 10.15.6 19G73
    • Web Server (web)       • web-server                • web-javascript • Flutter Tools
    • Chrome (web)           • chrome                    • web-javascript • Google Chrome 84.0.4147.89

• No issues found!

Can you upgrade to master and try again
flutter channel master
flutter upgrade --force
flutter doctor -v

Thank you

@TahaTesser TahaTesser added waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds browser: firefox only manifests in Firefox engine flutter/engine repository. See also e: labels. labels Jul 23, 2020
@agyimr
Copy link

agyimr commented Jul 27, 2020

I also experience the same issue on Flutter 1.21.0-5.0.pre • channel master.

image

@jmshrv
Copy link
Author

jmshrv commented Aug 6, 2020

I just tried again on latest master with the same results.

[✓] Flutter (Channel master, 1.21.0-6.0.pre.225, on Linux, locale en_GB.UTF-8)
    • Flutter version 1.21.0-6.0.pre.225 at /home/james/Android/flutter
    • Framework revision 3b41ebcf41 (44 minutes ago), 2020-08-06 06:56:03 -0400
    • Engine revision 8dddc0f529
    • Dart version 2.10.0 (build 2.10.0-3.0.dev 14a6aac97b)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at /home/james/Android/Sdk
    • Platform android-30, build-tools 30.0.1
    • Java binary at: /opt/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = chromium

[!] Android Studio (version 4.0)
    • Android Studio at /opt/android-studio
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] Connected device (2 available)
    • Web Server (web) • web-server • web-javascript • Flutter Tools
    • Chrome (web)     • chrome     • web-javascript • Chromium 84.0.4147.105 Arch Linux

! Doctor found issues in 1 category.

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Aug 6, 2020
@tomk9
Copy link

tomk9 commented Sep 1, 2020

The bug is on Firefox Windows but not on Firefox macOS
image

[✓] Flutter (Channel beta, 1.21.0-9.2.pre, on Mac OS X 10.15.6 19G2021, locale en-GB)
    • Flutter version 1.21.0-9.2.pre at /Users/tomasz/development/flutter
    • Framework revision 81a45ec2e5 (4 days ago), 2020-08-27 14:14:33 -0700
    • Engine revision 20a9531835
    • Dart version 2.10.0 (build 2.10.0-7.3.beta)

@Leffe108
Copy link

Leffe108 commented Sep 5, 2020

I find that this issue occur both on Windows in both Firefox and Chrome. It is just more that is clipped off in Firefox.

I've updated the bug_report zip a bit with a default text of "yjqg" and I added a Text() because I have found that the clipping does not just occur in text fields but also in Text().
bug_report2.zip

Firefox on Windows

bild

bild

Chrome on Windows

bild

bild

@jmshrv
Copy link
Author

jmshrv commented Sep 5, 2020

If anyone needs a quick workaround for this, enabling the Skia renderer by building with --dart-define=FLUTTER_WEB_USE_SKIA=true fixes this issue. The downside is that you're now using an experimental renderer and less stuff is handled natively by the browser (for me, the way text was noticeably different with Skia).

@yuhao-nyc
Copy link

@UnicornsOnLSD do you manage to get another solution without using this quick workaround? I've been seeing this issue occur in mobile Chrome browsers both on iOS and Andriod devices

@yuhao-nyc
Copy link

[✓] Flutter (Channel beta, 1.21.0-9.1.pre, on Mac OS X 10.15.5 19F101, locale
    en-BG)
    • Flutter version 1.21.0-9.1.pre at /Users/yuhao/Desktop/flutter
    • Framework revision be9bc8cb39 (3 weeks ago), 2020-08-18 09:46:08 -0700
    • Engine revision 267070c17a
    • Dart version 2.10.0 (build 2.10.0-7.2.beta)


[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/yuhao/Library/Android/sdk
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.7, Build version 11E801a
    • CocoaPods version 1.8.4

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 42.1.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build
      1.8.0_202-release-1483-b49-5587405)

[✓] VS Code (version 1.48.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.14.1

[✓] Connected device (2 available)
    • Web Server (web) • web-server • web-javascript • Flutter Tools
    • Chrome (web)     • chrome     • web-javascript • Google Chrome
      85.0.4183.102```

@jmshrv
Copy link
Author

jmshrv commented Sep 11, 2020

@UnicornsOnLSD do you manage to get another solution without using this quick workaround? I've been seeing this issue occur in mobile Chrome browsers both on iOS and Andriod devices

I haven't found any other way of fixing this yet :(

@oantajames
Copy link

oantajames commented Sep 14, 2020

We are also encountering this issue. Any updates coming soon?

[✓] Flutter (Channel beta, 1.21.0-9.2.pre, on Mac OS X 10.15.6 19G73, locale en-GB)
    • Flutter version 1.21.0-9.2.pre at /Users/james/Documents/Development/flutter
    • Framework revision 81a45ec2e5 (3 weeks ago), 2020-08-27 14:14:33 -0700
    • Engine revision 20a9531835
    • Dart version 2.10.0 (build 2.10.0-7.3.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/james/Library/Android/sdk
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.6, Build version 11E708
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /Applications/Google Chrome.app/Contents/MacOS/google-chrome.sh

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 48.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

 
[✓] Connected device (2 available)            
    • Web Server (web) • web-server • web-javascript • Flutter Tools
    • Chrome (web)     • chrome     • web-javascript • Google Chrome 85.0.4183.102

• No issues found!

Firefox version: 80.0.1 (64-bit)

Example:
Screenshot 2020-09-14 at 18 47 20

We also tried using the skia engine, but it breaks a lot of other stuff.

@yuhao-nyc
Copy link

We are also encountering this issue. Any updates coming soon?

[✓] Flutter (Channel beta, 1.21.0-9.2.pre, on Mac OS X 10.15.6 19G73, locale en-GB)
    • Flutter version 1.21.0-9.2.pre at /Users/james/Documents/Development/flutter
    • Framework revision 81a45ec2e5 (3 weeks ago), 2020-08-27 14:14:33 -0700
    • Engine revision 20a9531835
    • Dart version 2.10.0 (build 2.10.0-7.3.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/james/Library/Android/sdk
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.6, Build version 11E708
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /Applications/Google Chrome.app/Contents/MacOS/google-chrome.sh

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 48.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

 
[✓] Connected device (2 available)            
    • Web Server (web) • web-server • web-javascript • Flutter Tools
    • Chrome (web)     • chrome     • web-javascript • Google Chrome 85.0.4183.102

• No issues found!

Firefox version: 80.0.1 (64-bit)

Example:
Screenshot 2020-09-14 at 18 47 20

We also tried using the skia engine, but it breaks a lot of other stuff.

I've been doing bunch research. havent find anything besides using the skia enger

@slavap
Copy link

slavap commented Sep 22, 2020

The same problem, Firefox 81.0b9 developer edition on Windows, Flutter 1.22.0-12.1.pre
Don't understand how this bug marked as P4, it is very serious problem.

@Leffe108
Copy link

It also appears to not only be limited to Firefox which the tagging indicate. (see my post above about reproduction on Chrome on Windows)

@yuhao-nyc
Copy link

yuhao-nyc commented Sep 22, 2020

@Leffe108 yes I've seen it on Chrome as well. Can we get some more 👀 in here?

@TahaTesser TahaTesser removed the browser: firefox only manifests in Firefox label Sep 22, 2020
@TahaTesser
Copy link
Member

TahaTesser commented Sep 22, 2020

image

I'm still unable to reproduce this on chrome as well

code sample
import 'package:flutter/material.dart';

void main() {
  runApp(BugReport());
}

class BugReport extends StatelessWidget {
  const BugReport({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: MainScreen(),
    );
  }
}

class MainScreen extends StatefulWidget {
  MainScreen({Key key}) : super(key: key);

  @override
  _MainScreenState createState() => _MainScreenState();
}

class _MainScreenState extends State<MainScreen> {
  static const DEBUG_TEXT = 'yjqg';
  TextEditingController _controller = TextEditingController(text: DEBUG_TEXT);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Bug Report"),
      ),
      body: Padding(
        padding: const EdgeInsets.all(8.0),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Text(DEBUG_TEXT),
            TextField(
              controller: _controller,
            ),
            Spacer(),
          ],
        ),
      ),
    );
  }
}
flutter doctor -v
[✓] Flutter (Channel master, 1.22.0-10.0.pre.281, on Mac OS X 10.15.6 19G2021
    x86_64, locale en-GB)
    • Flutter version 1.22.0-10.0.pre.281 at
      /Users/tahatesser/Code/flutter_master
    • Framework revision 511367aa5a (15 hours ago), 2020-09-21 15:33:32 -0700
    • Engine revision 4b8477d115
    • Dart version 2.10.0 (build 2.10.0-142.0.dev)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0, Build version 12A7209
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 49.0.2
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.49.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.14.1

[✓] Connected device (4 available)
    • RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64  • Android 10 (API 29)
    • macOS (desktop)  • macos            • darwin-x64     • Mac OS X 10.15.6
      19G2021 x86_64
    • Web Server (web) • web-server       • web-javascript • Flutter Tools
    • Chrome (web)     • chrome           • web-javascript • Google Chrome
      85.0.4183.102

• No issues found!

I’m unable to reproduce the issue to pinpoint the cause, but there are reports from several users. The issue needs further investigation.

@TahaTesser TahaTesser changed the title Text is clipped in Firefox [web] Text is clipped om some browsers in TextField and Text Widget Sep 22, 2020
@TahaTesser TahaTesser added framework flutter/packages/flutter repository. See also f: labels. will need additional triage This issue or PR needs attention during weekly triage labels Sep 22, 2020
@yuhao-nyc
Copy link

@TahaTesser I meant mobile Chrome. Also as of right now. I've seen it on iOS 14 mobile safari/chrome. mainly some characters will get cut off from a Text widget

@TahaTesser TahaTesser changed the title [web] Text is clipped om some browsers in TextField and Text Widget [web] Text is clipped on some browsers in TextField and Text Widget Sep 22, 2020
@Leffe108
Copy link

@TahaTesser It seems that you are on Mac. I'm on Windows 10. Maybe that is a factor. Would it provide any benefit of hosting a build from eg. master channel to have us test it, or test with a basic Windows 10 image in docker or CI/CD to rule out any dependency on fonts being installed by any software and also have something that can reproduce it?

I realize I didn't post my flutter doctor -v, so I include it here.

flutter doctor -v
[√] Flutter (Channel beta, 1.22.0-12.1.pre, on Microsoft Windows [Version 10.0.18363.1082], locale sv-SE)
    • Flutter version 1.22.0-12.1.pre at C:\Users\Leif\Programmering\Libraries\flutter
    • Framework revision 8b3760638a (7 days ago), 2020-09-15 17:47:13 -0700
    • Engine revision 4654fc6cf6
    • Dart version 2.10.0 (build 2.10.0-110.3.beta)


[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\Leif\Programmering\Android\android-sdks
    • Platform android-29, build-tools 30.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code, 32-bit edition (version 1.49.1)
    • VS Code at C:\Program Files (x86)\Microsoft VS Code
    • Flutter extension version 3.14.1

[√] Connected device (3 available)
    • Web Server (web) • web-server • web-javascript • Flutter Tools
    • Chrome (web)     • chrome     • web-javascript • Google Chrome 85.0.4183.102
    • Edge (web)       • edge       • web-javascript • Microsoft Edge 85.0.564.51

• No issues found!
Firefox 81.0

bild

bild

Chrome 85.0.4183.102

bild

bild

Chrome 85.0.4183.121

bild

bild

@Hixie Hixie removed the will need additional triage This issue or PR needs attention during weekly triage label Sep 22, 2020
@Leffe108
Copy link

I created a github repo using github action and puppeteer on windows 2019 server image. The workflow action do not reproduce the clipping of text. But when I run the same test flutter test test/puppeteer.dart locally it do reproduce the text clipping bug when headless is disabled. If headless is enabled in puppeteer, the rendering issue is not reproduced.

@fearlessambassador
Copy link

I'm seeing the same issue.

@MagsMagnoli
Copy link

MagsMagnoli commented Dec 31, 2020

I am also seeing this issue on Firefox for Windows and NOT on Firefox for Mac, specifically g's and y's are cut off when typing in textfields

flutter doctor -v

[✓] Flutter (Channel beta, 1.25.0-8.1.pre, on macOS 11.1 20C69 darwin-x64, locale en-US)
    • Flutter version 1.25.0-8.1.pre at /Users/mags/Development/flutter/flutter-sdk
    • Framework revision 8f89f6505b (2 weeks ago), 2020-12-15 15:07:52 -0800
    • Engine revision 92ae191c17
    • Dart version 2.12.0 (build 2.12.0-133.2.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/mags/Library/Android/sdk
    • Platform android-30, build-tools 29.0.2
    • Java binary at: /Users/mags/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.6953283/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    ✗ CocoaPods installed but not working.
        You appear to have CocoaPods installed but it is not working.
        This can happen if the version of Ruby that CocoaPods was installed with is different from the one being used to invoke it.
        This can usually be fixed by re-installing CocoaPods.
      To re-install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio
    • Android Studio at /Users/mags/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-1/201.6953283/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Android Studio not found at /Users/mags/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-1/201.6953283/Android Studio.app/Contents
    • Try updating or re-installing Android Studio.

[✓] Android Studio (version 4.1)
    • Android Studio at /Users/mags/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.6953283/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Ultimate Edition (version 2020.3.1)
    • IntelliJ at /Users/mags/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 52.1.5
    • Dart plugin version 203.6912

[✓] VS Code (version 1.52.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.18.0

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 87.0.4280.88

Firefox Mac
Firefox Windows

Unrelated but on Firefox Mac when typing in a textfield the cursor starts to move by more than 1 character length so after typing a sentence the cursor appears hundreds of pixels away

@mdebbar
Copy link
Contributor

mdebbar commented Mar 17, 2021

Is this still an issue today with latest master or on the new stable version?

@mdebbar mdebbar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 17, 2021
@tomk9
Copy link

tomk9 commented Mar 17, 2021

Clipped text in Firefox is solved, The only problem that still exists is clipped text selection for "yjqg" characters for html renderer.

flutter build web --web-renderer html --release
Mozilla Firefox 86.0.1 Google Chrome 89.0.4389.82
image image
flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, 2.1.0-13.0.pre.139, on Microsoft Windows [Version 10.0.19042.867], locale pl-PL)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.3.5)
[√] Android Studio (version 4.1.0)
[√] VS Code (version 1.54.3)
[√] Connected device (3 available)

• No issues found!

@mdebbar mdebbar added the browser: firefox only manifests in Firefox label Mar 17, 2021
@pedromassangocode

This comment has been minimized.

@pedromassangocode pedromassangocode added r: timeout Issue is closed due to author not providing the requested details in time and removed waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Apr 7, 2021
@TahaTesser TahaTesser reopened this Apr 7, 2021
@TahaTesser TahaTesser removed the r: timeout Issue is closed due to author not providing the requested details in time label Apr 7, 2021
@mdebbar
Copy link
Contributor

mdebbar commented Mar 16, 2022

Is this still an issue? There should be no more clipping of text.

@mdebbar mdebbar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 16, 2022
@jmshrv
Copy link
Author

jmshrv commented Mar 16, 2022

I haven't noticed this for a while now, at least since Flutter 2.8. Closing :)

@jmshrv jmshrv closed this as completed Mar 16, 2022
@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 16, 2022
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: text input Entering text in a text field or keyboard related problems a: typography Text rendering, possibly libtxt browser: firefox only manifests in Firefox c: rendering UI glitches reported at the engine/skia rendering level e: web_html HTML rendering backend for Web engine flutter/engine repository. See also e: labels. framework flutter/packages/flutter repository. See also f: labels. P2 Important issues not at the top of the work list platform-web Web applications specifically
Projects
None yet
Development

No branches or pull requests