[wpt-sync] Sync PR 39165 - [anchor-position] Stop adjusting ComputedStyle for anchor queries
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox114 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 39165 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/39165
Details from upstream follow.
Xiaocheng Hu <xiaochengh@chromium.org> wrote:
[anchor-position] Stop adjusting ComputedStyle for anchor queries
anchor()
andanchor-size()
should be invalid on other elements.
This patch changes the ensuring of this to used value time instead
of computed value time, so that they still cascade as normal.This is ensured by making the property getters protected on
ComputedStyleBase
, which forces all callers (with a few exceptions)
to use the newComputedStyle::UsedFoo()
getters.The exceptions are the new friend classes in
ComputedStyle
:
LengthPropertyFunctions
: this class is for animations only,
and animations should use the original computed value.StyleResolverTest
: for convenience in unit testsThe downside is that we now create a copy of the
Length
object
when accessing these properties. MotionMark result suggests that
this has no performance impact.Bug: 1382151
Change-Id: Ie1a8dcfeed92b79161f99fccec8d41b4e4115738
Reviewed-on: https://chromium-review.googlesource.com/4363721
WPT-Export-Revision: eb1598d63e4b8c353f67ea2a8ccff91002016fec
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 2•2 years ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 4 subtests
Status Summary
Firefox
OK
: 1
FAIL
: 4
Chrome
OK
: 1
FAIL
: 4
Safari
OK
: 1
FAIL
: 4
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/css-anchor-position/anchor-non-oof-inherit.html [wpt.fyi]
- .target 1:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - .target 2:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - .target 3:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - .target 4:
FAIL
(Chrome:FAIL
, Safari:FAIL
)
- .target 1:
Comment 4•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f0ab2c974521
https://hg.mozilla.org/mozilla-central/rev/d03ec43be82b
Description
•