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

web: Support align embed/object attribute (part of #4258) #19079

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

danielhjacobs
Copy link
Contributor

Not added to config/options as align itself is deprecated for embed/object elements - the same can be accomplished with the appropriate CSS.

@danielhjacobs danielhjacobs added A-web Area: Web & Extensions T-compat Type: Compatibility with Flash Player labels Dec 27, 2024
case "center":
return "vertical-align: middle;";
case "middle":
return "vertical-align: middle; vertical-align: -webkit-baseline-middle; vertical-align: -moz-middle-with-baseline;";
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Found in testing on Chrome. The closest page I can find to describing this behavior is https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#align. It says right and left are equivalent to float CSS, though doesn't mention the vertical-align, but it seems to be added in testing. It says top is vertical-align: top, true in testing. It says middle is vertical-align: -moz-middle-with-baseline, and in testing on Chrome it is -webkit-baseline-middle. It says bottom is vertical-align: unset, and in testing it seems to be vertical-align: baseline, which seems to be the default. It doesn't mention center, but in testing that seems to be vertical-align: middle.

@danielhjacobs danielhjacobs added the waiting-on-review Waiting on review from a Ruffle team member label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-web Area: Web & Extensions T-compat Type: Compatibility with Flash Player waiting-on-review Waiting on review from a Ruffle team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant