[Webkit-unassigned] [Bug 248659] New: auto-functions is useless if the parser doesn't accept `auto`
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Dec 2 07:43:17 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=248659
Bug ID: 248659
Summary: auto-functions is useless if the parser doesn't accept
`auto`
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: obrufau at igalia.com
CC: sam at webkit.org
In CSSProperties.json, properties can be defined with "auto-functions":true, this generates a style builder like
static void applyValueOrphans(BuilderState& builderState, CSSValue& value)
{
if (downcast<CSSPrimitiveValue>(value).valueID() == CSSValueAuto) {
builderState.style().setHasAutoOrphans();
return;
}
builderState.style().setOrphans(downcast<CSSPrimitiveValue>(value));
}
However, this is useless if the parser doesn't accept `auto` as a valid keyword!
So I think that an error should be reported if parser-grammar doesn't contain "auto", or something like that.
Or maybe don't require that but let auto-functions automatically imply that `auto` is a valid keyword.
But the current state is bad, it means that orphans:initial doesn't map to any value of its grammar, and getComputedStyle().orphans can return "auto" which is not a supported value.
Both `orphans` and `widows` are affected.
--
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/20221202/3ad35046/attachment-0001.htm>
More information about the webkit-unassigned
mailing list