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

[Gecko Bug 306344] Use transform animations to implement marquee. #45618

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

moz-wptsync-bot
Copy link
Collaborator

This matches what chromium does, and is both simpler and prettier.

The overflow: hidden enforcement also matches chromium / WebKit via:

https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/css/resolver/style_adjuster.cc;l=482;drc=88c8510c16d44e0dc8c07426db31aa5bb3c90a2b
https://searchfox.org/wubkat/rev/473ca5f8512b88edd7e82c8783e7e09158f17ba1/Source/WebCore/style/StyleAdjuster.cpp#581-596

See also whatwg/html#10243 and the resets.html
change.

Adding white-space: nowrap isn't strictly necessary, but also matches
other implementations:

https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/html/html_marquee_element.cc;l=66;drc=4aba604f0aae6fb93eab830b68765604e9a2cca0
(and same link as above on WebKit)

Differential Revision: https://phabricator.services.mozilla.com/D206357

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=306344
gecko-commit: 0506d9964b321a47ffbbdbde6b3321c741322816
gecko-reviewers: smaug, firefox-animation-reviewers, boris

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Firefox project.

This matches what chromium does, and is both simpler and prettier.

The overflow: hidden enforcement also matches chromium / WebKit via:

  https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/css/resolver/style_adjuster.cc;l=482;drc=88c8510c16d44e0dc8c07426db31aa5bb3c90a2b
  https://searchfox.org/wubkat/rev/473ca5f8512b88edd7e82c8783e7e09158f17ba1/Source/WebCore/style/StyleAdjuster.cpp#581-596

See also whatwg/html#10243 and the resets.html
change.

Adding white-space: nowrap isn't strictly necessary, but also matches
other implementations:

  https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/html/html_marquee_element.cc;l=66;drc=4aba604f0aae6fb93eab830b68765604e9a2cca0
  (and same link as above on WebKit)

Differential Revision: https://phabricator.services.mozilla.com/D206357

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=306344
gecko-commit: c5dcab43fa407e2d919a8f79ed4403447c391cbd
gecko-reviewers: smaug, firefox-animation-reviewers, boris
@moz-wptsync-bot moz-wptsync-bot merged commit 7e64f31 into master Apr 9, 2024
20 checks passed
@moz-wptsync-bot moz-wptsync-bot deleted the gecko/306344 branch April 9, 2024 16:43
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.

3 participants