[Libreoffice-bugs] [Bug 132773] Copying an underlined word from an html document loses underline property

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed May 6 20:59:49 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=132773

--- Comment #6 from Konstantin Kharlamov <hi-angel at yandex.ru> ---
(In reply to Mike Kaganski from comment #5)
> Playing with InsideClipboard and its Clp file, I was able to make it work
> with Chrome by replacing in this clipboard HTML:
> 
> > <html>
> > <body>
> > <!--StartFragment--><span style="color: rgb(0, 0, 0); font-family: "Times New Roman"; font-size: medium; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: underline; display: inline !important; float: none;">Test</span><!--EndFragment-->
> > </body>
> > </html>
> 
> the string "-webkit-text-stroke-width" with " webkit-text-stroke-width",
> i.e. removing the leading hyphen.

Thank you for extensive analysis!

Worth noting, leading hyphen and underscores are allowed in the CSS selector
name, and are usually used for browser-specific extensions. So LO CSS parser
should not bail out upon seeing such syntax.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200506/9ff635c7/attachment.htm>


More information about the Libreoffice-bugs mailing list