Re: [csswg-drafts] [css-text] Consider removing `distribute` value for `text-justify` from the spec (#7322)

> WebKit does, it's just that you have to create a custom parsing function for the CSS property, you can't go through parsing fast paths (which just checks keywords)

Kinda off-topic, but not sure if you are aware of [`CSSParserFastPaths::isPartialKeywordPropertyID`](https://github.com/WebKit/WebKit/blob/d8ee6747d642bdcd1583cb9daacffa78269ec0f6/Source/WebCore/css/parser/CSSParserFastPaths.cpp#L1060). If you return true for `CSSPropertyTextJustify`, then you can keep the current fast path code, and then in `CSSPropertyParser::parseSingleValue` you only have to handle the alias.

-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7322#issuecomment-1153011175 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 11 June 2022 22:46:58 UTC