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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amp-script: Move [nodom] CSS to ampdoc.css to avoid resize #29752

Merged
merged 3 commits into from
Aug 11, 2020

Conversation

dreamofabear
Copy link

@dreamofabear dreamofabear requested a review from samouri August 7, 2020 20:44
@google-cla google-cla bot added the cla: yes label Aug 7, 2020
@amp-owners-bot amp-owners-bot bot requested a review from nainar August 7, 2020 20:44
amp-script[nodom] {
/* Fixed to make position independent of page other elements. */
position: fixed !important;
top: 0 !important;
Copy link
Member

Choose a reason for hiding this comment

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

why do we need to specify top/overflow?

Copy link
Author

Choose a reason for hiding this comment

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

This aligns with CSS for amp-analytics. My guess is top helps make sure it's in viewport to be laid out, not sure about overflow.

Copy link
Member

Choose a reason for hiding this comment

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

I left it out because they didn't seem necessary 🤷

@dreamofabear dreamofabear merged commit afd7c3f into ampproject:master Aug 11, 2020
@dreamofabear dreamofabear deleted the nodom-content-jump branch August 11, 2020 20:56
ed-bird pushed a commit to ed-bird/amphtml that referenced this pull request Dec 10, 2020
…t#29752)

* Move amp-script[nodom] CSS to ampdoc.css.

* Unskip test.
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.

4 participants