Bug 228730 - Replace webkit- prefix logical properties with Standard Properties in LayoutTests/
Summary: Replace webkit- prefix logical properties with Standard Properties in LayoutT...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sonia Singla
URL:
Keywords: InRadar
Depends on:
Blocks: 228546
  Show dependency treegraph
 
Reported: 2021-08-02 23:21 PDT by Sonia Singla
Modified: 2021-09-01 22:11 PDT (History)
6 users (show)

See Also:


Attachments
Patch (299.47 KB, patch)
2021-08-14 23:17 PDT, Sonia Singla
no flags Details | Formatted Diff | Diff
Patch (298.12 KB, patch)
2021-08-14 23:48 PDT, Sonia Singla
no flags Details | Formatted Diff | Diff
Patch (195.80 KB, patch)
2021-08-21 22:00 PDT, Sonia Singla
no flags Details | Formatted Diff | Diff
Patch (197.15 KB, patch)
2021-08-24 08:51 PDT, Sonia Singla
no flags Details | Formatted Diff | Diff
Patch (172.41 KB, patch)
2021-09-01 04:38 PDT, Sonia Singla
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sonia Singla 2021-08-02 23:21:09 PDT
Similar to Bug 228697,  we should replace webkit- prefix properties with Standard Properties in Layout/
Comment 1 Radar WebKit Bug Importer 2021-08-09 23:22:16 PDT
<rdar://problem/81729542>
Comment 2 Sonia Singla 2021-08-14 23:17:37 PDT
Created attachment 435558 [details]
Patch
Comment 3 Sonia Singla 2021-08-14 23:48:37 PDT
Created attachment 435559 [details]
Patch
Comment 4 Frédéric Wang (:fredw) 2021-08-16 00:42:11 PDT
Comment on attachment 435559 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=435559&action=review

Thanks Sonia. It looks that you are close to get EWS green. Some comments inline...

> LayoutTests/ChangeLog:144
> +        * platform/gtk/imported/w3c/web-platform-tests/css/cssom/cssstyledeclaration-csstext-expected.txt:

As a reminder, you should not modify any test in LayoutTests/imported/w3c/web-platform-tests/ (these have not been sync). Since you don't modify any code here in this patch, there is no need to update the expectation.

> LayoutTests/fast/css/remove-shorthand-expected.txt:57
> +removes "margin-block-start-collapse, margin-block-end-collapse"

You didn't modify remove-shorthand.html in this patch.

It looks like this test is checking what are the longhand properties removed when removing the shorthand -webkit-margin-collapse.

> LayoutTests/platform/glib/svg/css/getComputedStyle-basic-expected.txt:468
> +rect: style.getPropertyCSSValue(margin-block-start-collapse) : [object CSSPrimitiveValue]

For all these getComputedStyle-basic-expected.txt, you modified the expectation but not the test LayoutTests/svg/css/getComputedStyle-basic.xhtml itself.

I believe we want to continue to test the -webkit prefixed properties here, until they are actually removed. What you should do instead is updating Layout/fast/css/getComputedStyle/resources/property-names.js to add the unprefixed forms. Please check all the tests that are relying on this helper JS file and run locally before uploading a new patch:

	LayoutTests/fast/css/getComputedStyle/computed-style-without-renderer.html
	LayoutTests/fast/css/getComputedStyle/computed-style.html
	LayoutTests/svg/css/getComputedStyle-basic.xhtml

> LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-expected.txt:236
> +margin-block-start-collapse: collapse;

For these computed-style-expected.txt files, see my comment about property-names.js

> LayoutTests/platform/ios/fast/css/getComputedStyle/computed-style-without-renderer-expected.txt:235
> +margin-block-start-collapse: collapse

For these computed-style-without-renderer-expected.txt files, see my comment about property-names.js
Comment 5 Sonia Singla 2021-08-21 22:00:32 PDT
Created attachment 436106 [details]
Patch
Comment 6 Frédéric Wang (:fredw) 2021-08-23 00:01:25 PDT
Comment on attachment 436106 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=436106&action=review

LGTM, but probably wait that Oriol or Rego are back to comment on this.

> LayoutTests/ChangeLog:4
> +        https://bugs.webkit.org/show_bug.cgi?id=228730

I think it would be nice to have a short statement explaining what we are doing in this patch. In particular, the details of the old/new property names.
Comment 7 Sonia Singla 2021-08-24 08:51:37 PDT
Created attachment 436290 [details]
Patch
Comment 8 Manuel Rego Casasnovas 2021-09-01 01:03:21 PDT
Comment on attachment 436290 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=436290&action=review

Nice work, thanks for the patch. Just some comments inline.

> LayoutTests/ChangeLog:32
> +        Reviewed by NOBODY (OOPS!).

Nit: This line is usually before the description of the change.

> LayoutTests/ChangeLog:56
> +        * fast/css/border-start-end.html:

This test is specifically testing the -webkit- prefixed property, so it doesn't make sense to change it. Please keep it as it is.

There are more like this: margin-start-end.html, padding-start-end.html.
Comment 9 Sonia Singla 2021-09-01 04:38:36 PDT
Created attachment 437013 [details]
Patch
Comment 10 EWS 2021-09-01 22:11:14 PDT
Committed r281908 (241220@main): <https://commits.webkit.org/241220@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 437013 [details].