Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#12545 closed Bug (wontfix)

Copying font with zoom level above 100% pastes decimal font sizes

Reported by: Nathan Frost Owned by:
Priority: Normal Milestone:
Component: General Version: 4.3
Keywords: Cc:

Description

From Full Featured Demo page:

  1. Select text and set the size to 12.
  2. On the browser (Chrome or Safari) set the zoom level to 110%
  3. Copy Text
  4. Paste text
  5. Inspect the text with your browser and the font size will not be 12 but 11.55828912 or something like that.

Discovered in 4.3 and is reproducible in latest version (4.5)

Change History (2)

comment:1 Changed 5 years ago by Jakub Ś

Resolution: wontfix
Status: newclosed

I have tried this issue in native contenteditable and got same result. This is browser issue and should be reported to Webkit.

To reproduce just open this code snippet in HTML5 document in Chrome, copy word test and paste it below.

<div contenteditable="true">
<p><span style="font-size:12px">test</span></p>
</div>

I have also tried checking what browser sees as content being pasted and unfortunately there is something like: "11.54321".

comment:2 Changed 5 years ago by Piotrek Koszuliński

The truth is that it is ridiculous behaviour of Blink and Webkit. These engines are generating terrible HTML when copying HTML - it is a real disaster and when we get such HTML there's nothing we can do.

However, the good news is that in CKEditor 4.5 we are going to switch to our implementation of coping, so this issue should be then fixed when copying from editor (but not from outside of it).

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy