Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰Fix attribution icon being centered incorrectly #25648

Merged
merged 1 commit into from Nov 18, 2019
Merged

馃悰Fix attribution icon being centered incorrectly #25648

merged 1 commit into from Nov 18, 2019

Conversation

calebcordry
Copy link
Member

If a publisher writes a CSS rule like amp-story { text-align: center } this rule will affect the placement of the attribution icon, even though the icon element is in shadow DOM :(

localhost_8000_examples_amp-story_fake-ad html(Pixel 2 XL)

This fix explicitly sets the left position so that pubs can't break the positioning in this way.

@calebcordry calebcordry merged commit 731d302 into ampproject:master Nov 18, 2019
@calebcordry calebcordry deleted the attribution-bug branch November 18, 2019 23:12
micajuine-ho pushed a commit to micajuine-ho/amphtml that referenced this pull request Dec 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants