Opened 13 years ago

Last modified 9 years ago

#7819 confirmed Bug

Wrong Font size using BBCode plugin

Reported by: Krzysztof Studnik Owned by:
Priority: Normal Milestone:
Component: General Version: 3.6
Keywords: Cc:

Description

Environment

CKE 3.6, Opera 11, IE6/7, Chrome

TC

  • Load BBCode sample
  • clear content
  • type "default"
  • change font size to 200, type 200
  • change font size to 150, type 150 See that newly typed text is bigger, than previous, and element path contains two size
  • repeat for other font sizes

Result

the size tags, are not closed after changing font size to other values:

default[size=200]200[size=150]150[size=120]120[size=100]100[size=50]50[size=30]30[size=300]300[size=200]200[/size][/size][/size][/size][/size][/size][/size][/size]

Attached screen

Expected

default[size=200]200[/size][size=150]150[/size][size=120]120[/size][size=100]100[/size][size=50]50[/size][size=30]30[/size][size=300]300[/size][size=200]200[/size]

Attachments (1)

zrzut_ekranu-10.png (19.2 KB) - added by Krzysztof Studnik 13 years ago.

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by Krzysztof Studnik

Attachment: zrzut_ekranu-10.png added

comment:1 Changed 13 years ago by Wiktor Walc

Status: newconfirmed

It happens because percent values are used to set the font size (by design).

The following code:

[size=200]200 [size=150]200+150[/size] 200[/size]

is translated into:

<span style="font-size: 200%;">200 <span style="font-size: 150%;">200+150</span> 200</span>

It looks like certains systems do not support nested [size] tags so it looks like something that could be improved in the future.

comment:2 Changed 13 years ago by Garry Yao

This's something definitely need a fix, while it currently depends on #7498.

comment:3 Changed 9 years ago by Jakub Ś

#10591 might be either related or a result of this ticket.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy