Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Text rendering accuracy in Safari when using iron-list inside iron-dropdown #63

@valdrinkoshi

Description

@valdrinkoshi

From @platosha on December 7, 2015 15:11

In Safari when scrolling a long iron-list placed inside an iron-dropdown, the items text is sometimes rendered 1 device pixel line outside the dropdown.

image

Expected outcome

The items text should not overflow outside the dropdown content element during vertical scroll.

Actual outcome

The items text is sometimes rendered 1 device pixel line outside the dropdown content.

Steps to reproduce

  1. Create an iron-list with many items, assign background and dimentions in styles.
  2. Wrap the iron-list with iron-dropdown
  3. Assign a position target for iron-dropdown
  4. Assign a non-integer pixel offset for the iron-dropdown position target. E. g.: margin-top: 0.4px;.
  5. Toggle the dropdown and scroll the items list vertically

Demo

http://jsfiddle.net/3mprhn5p/2/

The issue is visible in Safari 9.0.1 (OS X 10.10.5). Other Safari versions aren't tested.

More noticeable on non-retina screens.

Generally this seems to be a Safari rendering issue. Occurs when CSS transforms are applied on the element containing text, while the element’s parent is positioned on non-integer pixel coordinates.

The rendering issue could be reproduced without Polymer Elements and Web Components as well, see this demo: http://jsfiddle.net/fghtdh7r/6/

Copied from original issue: PolymerElements/iron-dropdown#40

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions