[webkit-changes] [WebKit/WebKit] e31e2e: Container query length units use border box instea...
Antti Koivisto
noreply at github.com
Tue May 2 10:22:16 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e31e2eb9806ebc6612c400af57b33856ec796957
https://github.com/WebKit/WebKit/commit/e31e2eb9806ebc6612c400af57b33856ec796957
Author: Antti Koivisto <antti at apple.com>
Date: 2023-05-02 (Tue, 02 May 2023)
Changed paths:
A LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-units-content-box-expected.txt
A LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-units-content-box.html
M Source/WebCore/css/CSSPrimitiveValue.cpp
Log Message:
-----------
Container query length units use border box instead of a content box
https://bugs.webkit.org/show_bug.cgi?id=256178
rdar://problem/108754549
Reviewed by Alan Baradlay.
https://www.w3.org/TR/css-contain-3/#container-query-length:
> For each element, container query length units are evaluated as container size queries on the relevant axis (or axes) described by the unit.
https://www.w3.org/TR/css-contain-3/#container-size-query:
> The width container feature queries the width of the query container’s content box.
> The height container feature queries the height of the query container’s content box.
> The inline-size container feature queries the size of the query container’s content box in the query container’s inline axis.
> The block-size container feature queries the size of the query container’s content box in the query container’s block axis.
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-units-content-box-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/css-contain/container-queries/container-units-content-box.html: Added.
* Source/WebCore/css/CSSPrimitiveValue.cpp:
(WebCore::CSSPrimitiveValue::computeNonCalcLengthDouble):
Resolve the container units against the correct box.
Canonical link: https://commits.webkit.org/263595@main
More information about the webkit-changes
mailing list