[Webkit-unassigned] [Bug 246914] New: [web-animations] commitStyles() fails with to commit a relative line-height value
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Oct 23 03:36:36 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=246914
Bug ID: 246914
Summary: [web-animations] commitStyles() fails with to commit a
relative line-height value
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Animations
Assignee: webkit-unassigned at lists.webkit.org
Reporter: graouts at webkit.org
CC: dino at apple.com, graouts at apple.com
We fail this subtest in web-animations/interfaces/Animation/commitStyles.html:
test(t => {
const div = createDiv(t);
div.style.fontSize = '10px';
const animation = div.animate(
{ lineHeight: '1.5' },
{ duration: 1, fill: 'forwards' }
);
animation.finish();
animation.commitStyles();
animation.cancel();
assert_numeric_style_equals(getComputedStyle(div).lineHeight, 15);
assert_equals(div.style.lineHeight, "1.5", "line-height is committed as a relative value");
div.style.fontSize = '20px';
assert_numeric_style_equals(getComputedStyle(div).lineHeight, 30,
"Changes to the font-size should affect the committed line-height");
}, 'Commits relative line-height');
This is because of BuilderConverter::convertLineHeight() where a line-height specified as a percentage is stored as a LengthType::Fixed, while a line-height specified as number is stored as LengthType::Percent.
We'll somehow need to account for `specifiedLineHeight()`.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221023/fc8824e0/attachment.htm>
More information about the webkit-unassigned
mailing list