Skip to content

Add perspective(1px) back to desktop amp-story-pages.#26486

Merged
Enriqe merged 1 commit intoampproject:masterfrom
gmajoulet:add_perspective_back
Jan 24, 2020
Merged

Add perspective(1px) back to desktop amp-story-pages.#26486
Enriqe merged 1 commit intoampproject:masterfrom
gmajoulet:add_perspective_back

Conversation

@gmajoulet
Copy link
Copy Markdown
Contributor

TIL, Chrome can add this white border around elements if:

  • You use a scale() on the element, that ends up in a non integer (float) width. This can be fixed with perspective(1px);. Done in this PR
  • You use a translateX() on the element, which value is a non integer (float). This can be fixed by providing an integer value to translateX(). Done in Fix border around desktop amp-story-pages. #26449

#16626

Copy link
Copy Markdown
Contributor

@Enriqe Enriqe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering why we needed that lol

@Enriqe Enriqe merged commit bc70f76 into ampproject:master Jan 24, 2020
robinvanopstal added a commit to jungvonmatt/amphtml that referenced this pull request Jan 27, 2020
* master: (62 commits)
  📦 Update dependency fetch-mock to v8.3.2 (ampproject#26491)
  Revert 'Move mutator implementations out to a standalone service' (ampproject#26479)
  Fix syntax error (ampproject#26481)
  Add pespective back. (ampproject#26486)
  More user friendly errors in layout.js (ampproject#26448)
  ✨ Start logging AMP URL on SwG Pages (ampproject#26480)
  Fix border around desktop amp-story-pages. (ampproject#26449)
  Fix Story tests. (ampproject#26464)
  ✨ Performance Measurement Chrome Extension (ampproject#26333)
  amp-consent restrict iframe fullScreen if no focus  (ampproject#26461)
  Add performance benchmark task (ampproject#26026)
  ♻️ amp-script: emit warning if zero height and width. (ampproject#26444)
  ✨ Launch minimal-wrapper native CEv1 (ampproject#26360)
  ♻️ Lint: include externs (round 2) (ampproject#26446)
  amp-script: Create 'fill content' container for responsive/fluid (ampproject#26400)
  amp-consent remove cmp iframe focus (ampproject#26437)
  Disable macro-after-long-task in inabox. (ampproject#26459)
  Launch layoutbox-invalidate-on-scroll (ampproject#26430)
  Add amp-ad support for ByPlay (ampproject#25663)
  🏗 Add specific RTV opt-in to experiments.html (ampproject#26434)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants