{"id":5810,"date":"2018-10-16T17:03:25","date_gmt":"2018-10-16T14:03:25","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=5810"},"modified":"2018-10-16T17:03:25","modified_gmt":"2018-10-16T14:03:25","slug":"text-highlight-mismatch-in-view-source-when-layout-css-devpixelsperpx-is-1-2","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2018\/10\/16\/text-highlight-mismatch-in-view-source-when-layout-css-devpixelsperpx-is-1-2\/","title":{"rendered":"Text highlight mismatch in view-source when layout.css.devPixelsPerPx is &gt;= 1.2"},"content":{"rendered":"<p>== The issue ==<br \/>\nSearch and text selection highlighting visuals get mismatched with the actual selection in view-source when the value of `layout.css.devPixelsPerPx` is 1.2 or larger.<\/p>\n<p>== Steps to reproduce ==<br \/>\n* Open `about:config`, find `layout.css.devPixelsPerPx` and change the value from default (-1.0) to 1.2.<br \/>\n* Open a view-source view with long lines: `view-source:https:\/\/www.youtube.com\/user\/10asti10`<br \/>\n* hit Ctrl+f, search for rss<br \/>\n* using the LMB, try selecting some text, then copy and paste it somewhere<\/p>\n<p>== What happens ==<br \/>\nScreenshot 1: the highlighted text on the page is not &#8221;rss&#8221;. The highlight doesn&#8217;t even adhere to letter widths.<\/p>\n<p>Screenshot 2: the pasted text is not even close to what you&#8217;ve selected to copy.<\/p>\n<p>== What I expect to happen ==<br \/>\nFor the search to hightlight an occurence of &#8221;rss&#8221;, and for the pasted text to correspond to what I&#8217;ve selected from the view-source view.<\/p>\n<p>== Other info ==<br \/>\n* In my testing, a devPixelsPerPx value of 1.1 seems to not trigger this, whereas 1.2 and anything above does.<br \/>\n* In addition to 18.04 (whence the attached info is from) I&#8217;ve reproduced this in a VM running up-to-date 18.10.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Search and text selection highlighting visuals get mismatched in view-source when the value of layout.css.devPixelsPerPx is 1.2 or larger.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[546],"class_list":["post-5810","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-firefox","sijainti-launchpad"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5810","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=5810"}],"version-history":[{"count":2,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5810\/revisions"}],"predecessor-version":[{"id":5812,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/5810\/revisions\/5812"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=5810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=5810"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=5810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}