Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Ankidroid auto resizes font when using .question class in card css #4721

@Troyciv

Description

@Troyciv
Research

Enter an [ x ] character to confirm the points below:

[ x ] I have read the support page and am reporting a bug or enhancement request specific to AnkiDroid

[ x ] I have checked the manual and the FAQ and could not find a solution to my issue

[ x ] I have searched for similar existing issues here and on the user forum

Reproduction Steps
  1. create a basic note type in anki desktop
  2. edit card
    front html:
    {{Front}}
    back html:
    {{Front}}
    {{Back}}
    css:
.question {
      font-size: 1.25em;
  }
  1. enter to fields:
    front:
    This is a test, here is some random text just for testing
    back:
    This is a test, here is some random text just for testing

  2. save and sync with ankidroid

  3. review the test card in ankidroid

Expected Result

Front and Backside have the same font-size

Actual Result

Font-size on Backside is much smaller than Frontside

Debug info

AnkiDroid Version = 2.8.2

Android Version = 4.4.4

ACRA UUID =
d962e98c-26a5-42f8-af65-7b1c2443a2d3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions