[wpt-sync] Sync PR 45411 - Fix conversion test in CSSLengthInterpolationType::MaybeConvertInherit.
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox126 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
|
155.12 KB,
text/plain
|
Details |
Sync web-platform-tests PR 45411 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/45411
Details from upstream follow.
L. David Baron <dbaron@chromium.org> wrote:
Fix conversion test in CSSLengthInterpolationType::MaybeConvertInherit.
This check for IsAuto was really checking whether the GetLength
succeeded; it is now possible for GetLength to succeed while setting the
length to auto.The web-animations/responsive/width.html is only tangentially related,
since it was written when I thought this was really testing for 'auto'.
The existing failure in that test matches existing failures in other
tests in the same directory, on which it was modeled.The change to
external/wpt/css/css-values/calc-size/animation/calc-size-width-interpolation.tentative.html
does test the fix.I added tracking of the boolean in the InheritedLengthChecker despite
that I can't think of a case where it matters today. I think it's the
right thing given the function semantics, and not doing so could lead to
subtle bugs given future changes to LengthPropertyFunctions::GetLength.(This was part of auditing uses of Length::IsAuto() to convert the
necessary ones to HasAuto().)Bug: 313072
Change-Id: I5f7e5efe0d6f1b6ca598130ba50b06c65f3c721dReviewed-on: https://chromium-review.googlesource.com/5405916
WPT-Export-Revision: 19c9960593ce442f53bc45bcea8b1d98c763bb54
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
| Assignee | ||
Comment 2•1 year ago
|
||
Comment 4•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/d3c548c40dad
https://hg.mozilla.org/mozilla-central/rev/1a2b8dc3db5a
Description
•