Bug 126658 - Subpixel layout: RenderSlider's thumb position needs flooring.
Summary: Subpixel layout: RenderSlider's thumb position needs flooring.
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
Keywords: InRadar
Depends on:
Blocks: 126283
  Show dependency treegraph
Reported: 2014-01-08 13:24 PST by zalan
Modified: 2014-01-15 11:51 PST (History)
2 users (show)

See Also:

slider knob position (193.43 KB, image/jpeg)
2014-01-15 11:50 PST, zalan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2014-01-08 13:24:00 PST
LayoutUnit offset = percentageOffset * availableExtent;

with the following test case

<input type=range value=75 style="-webkit-transform: rotate(30deg)">

produces an off by one result when subpixel is on.

failed case:
Comment 1 Radar WebKit Bug Importer 2014-01-14 10:23:35 PST
Comment 2 zalan 2014-01-15 11:50:09 PST
Created attachment 221289 [details]
slider knob position
Comment 3 zalan 2014-01-15 11:51:19 PST
The new position does not make the slider's knob look less centered. It is just a different position. Prefer subpixel layout. (Can't compare to FF as this is a custom control)