What steps will reproduce the problem? 1. Open URL: data:text/html,<!doctype%20html><div%20dir=rtl><div%20dir=ltr%20style="text-align:%20match-parent">This%20should%20be%20right-aligned Demo markup: <!doctype html><div dir=rtl><div dir=ltr style="text-align: match-parent">This should be right-aligned What is the expected result? text-align: match-parent should be supported, as defined in https://drafts.csswg.org/css-text/#valdef-text-align-match-parent What happens instead? text-align: match-parent is not supported. However, a vendor-prefixed value text-align: -webkit-match-parent is supported. The prefixed variant should be removed (unless it is found to be required for web compat, in which case add it to https://compat.spec.whatwg.org ). Other browsers: Chromium is like WebKit. Gecko supports unprefixed 'match-parent', and does not support any prefixed variant. Also see https://github.com/whatwg/html/pull/6989
wpt test added in https://github.com/web-platform-tests/wpt/pull/30178
<rdar://problem/82628618>
Created attachment 446432 [details] WIP Patch
Created attachment 446451 [details] Patch
Created attachment 446582 [details] Patch
Comment on attachment 446582 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=446582&action=review > Source/WebCore/rendering/style/RenderStyleConstants.h:732 > - End, > + End Should not change this; trailing comma is harmless, and I even prefer it.
Comment on attachment 446582 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=446582&action=review >> Source/WebCore/rendering/style/RenderStyleConstants.h:732 >> + End > > Should not change this; trailing comma is harmless, and I even prefer it. Ok -- I'll revert that bit.
Created attachment 446602 [details] Patch for landing
Committed r286803 (245043@main): <https://commits.webkit.org/245043@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 446602 [details].