RESOLVED FIXED 229496
Add an unprefixed version of the CSS text-align: -webkit-match-parent value
https://bugs.webkit.org/show_bug.cgi?id=229496
Summary Add an unprefixed version of the CSS text-align: -webkit-match-parent value
Simon Pieters (:zcorpan)
Reported 2021-08-25 08:00:34 PDT
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
Attachments
WIP Patch (4.42 KB, patch)
2021-12-08 15:00 PST, Brent Fulgham
no flags
Patch (9.19 KB, patch)
2021-12-08 16:09 PST, Brent Fulgham
no flags
Patch (8.95 KB, patch)
2021-12-09 11:58 PST, Brent Fulgham
no flags
Patch for landing (8.04 KB, patch)
2021-12-09 13:59 PST, Brent Fulgham
no flags
Simon Pieters (:zcorpan)
Comment 1 2021-08-30 15:09:13 PDT
Radar WebKit Bug Importer
Comment 2 2021-09-01 08:01:28 PDT
Brent Fulgham
Comment 3 2021-12-08 15:00:34 PST
Created attachment 446432 [details] WIP Patch
Brent Fulgham
Comment 4 2021-12-08 16:09:56 PST
Brent Fulgham
Comment 5 2021-12-09 11:58:11 PST
Darin Adler
Comment 6 2021-12-09 13:37:03 PST
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.
Brent Fulgham
Comment 7 2021-12-09 13:56:24 PST
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.
Brent Fulgham
Comment 8 2021-12-09 13:59:09 PST
Created attachment 446602 [details] Patch for landing
EWS
Comment 9 2021-12-09 14:48:37 PST
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].
Note You need to log in before you can comment on or make changes to this bug.