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

[@container] Resolve logical units against element's writing-mode #32410

Merged
merged 1 commit into from
Jan 20, 2022

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Jan 17, 2022

Previously the unit 'qi' (for example) would resolve against the
nearest inline-axis container. However, according to a recent
resolution [1] writing-mode sensitive units resolve to a physical
axis based on the target element's writing mode.

This simplifies the container-relative unit resolution a bit, since
can always use PhysicalAxes when searching for the correct container.

Being able to resolve logical units in CSSToLengthConversionData also
prepares for implementation of the new viewport units [2], which
include a number of new logical variants as well. (They also resolve
to physical in the same way).

This CL should only affect code behind the CSSContainerRelativeUnits
runtime flag (status:test).

[1] w3c/csswg-drafts#6873
[2] https://crbug.com/1093055

Bug: 1223030, 1093055
Change-Id: I548a613609b46a38262d5de48e294dab1131853b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/ /3387159
Reviewed-by: Xiaocheng Hu <[email protected]>
Commit-Queue: Anders Hartvoll Ruud <[email protected]>
Cr-Commit-Position: refs/heads/main@{#961390}

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 Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-3387159 branch 2 times, most recently from 91d3c1e to 0ae1616 Compare January 20, 2022 08:36
Previously the unit 'qi' (for example) would resolve against the
nearest inline-axis container. However, according to a recent
resolution [1] writing-mode sensitive units resolve to a physical
axis based on the target element's writing mode.

This simplifies the container-relative unit resolution a bit, since
can always use PhysicalAxes when searching for the correct container.

Being able to resolve logical units in CSSToLengthConversionData also
prepares for implementation of the new viewport units [2], which
include a number of new logical variants as well. (They also resolve
to physical in the same way).

This CL should only affect code behind the CSSContainerRelativeUnits
runtime flag (status:test).

[1] w3c/csswg-drafts#6873
[2] https://crbug.com/1093055

Bug: 1223030, 1093055
Change-Id: I548a613609b46a38262d5de48e294dab1131853b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/ /3387159
Reviewed-by: Xiaocheng Hu <[email protected]>
Commit-Queue: Anders Hartvoll Ruud <[email protected]>
Cr-Commit-Position: refs/heads/main@{#961390}
@chromium-wpt-export-bot chromium-wpt-export-bot merged commit e328f12 into master Jan 20, 2022
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-3387159 branch January 20, 2022 10:34
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