WebKit icon indicating copy to clipboard operation
WebKit copied to clipboard

Adds "box-sizing: border-box" to table in UA stylesheet

Open karlcow opened this issue 3 years ago โ€ข 10 comments

699e270b239fd047f8f756e334a5703aea25e4f8

Adds "box-sizing: border-box" to table in UA stylesheet
https://bugs.webkit.org/show_bug.cgi?id=243234
<rdar://97634949>

Reviewed by NOBODY (OOPS!).

This changes the UA stylesheet to match to the spec
and adjusts the relevant tests.
https://html.spec.whatwg.org/#tables-2

* Source/WebCore/css/html.css:
(table):
* LayoutTests/fast/borders/border-image-fill-no-border-expected.html:
* LayoutTests/fast/borders/resources/svg-50x50-intrinsic.svg: Added.
* LayoutTests/fast/table/min-width-html-block-table-expected.txt:
* LayoutTests/fast/table/resources/min-width-helpers.js:
* LayoutTests/fast/table/min-width-html-inline-table-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/css/css-position/position-absolute-table-001-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/rendering/non-replaced-elements/tables/table-ua-stylesheet-expected.txt:
* LayoutTests/imported/w3c/web-platform-tests/html/rendering/non-replaced-elements/form-controls/resets.html:
* LayoutTests/platform/glib/tables/mozilla/bugs/bug145572-expected.txt:
* LayoutTests/platform/ios/tables/mozilla_expected_failures/bugs/bug3166-14-expected.txt:
* LayoutTests/platform/ios/tables/mozilla_expected_failures/bugs/bug3166-17-expected.txt:
* LayoutTests/platform/mac/tables/mozilla/bugs/bug145572-expected.txt:
* LayoutTests/platform/mac/tables/mozilla_expected_failures/bugs/bug3166-14-expected.txt:
* LayoutTests/platform/mac/tables/mozilla_expected_failures/bugs/bug3166-17-expected.txt:
* LayoutTests/platform/win/tables/mozilla/bugs/bug145572-expected.txt:

karlcow avatar Jul 28 '22 02:07 karlcow

I need to fix these 3 tests.

karlcow avatar Jul 28 '22 05:07 karlcow

Should we rename the bug/PR title to "Fix <table> box-sizing in UA stylesheet"? It doesn't look like this is actually about about <td> elements, and box-sizing is not an inherited property.

Would also be good to add a link to the spec in the commit message.

pxlcoder avatar Jul 28 '22 05:07 pxlcoder

  1. Yes. I have done the PR title. I will do in the commit later.
  2. Yes. will do.

Thanks!

karlcow avatar Jul 28 '22 07:07 karlcow

ok first test OpenSource/LayoutTests//fast/borders/border-image-fill-no-border.html

Top: test Bottom: text-expected.

From left to right: Safari, Safari (my build), Firefox, Chrome Screenshot 2022-07-28 at 16 58 05

karlcow avatar Jul 28 '22 08:07 karlcow

Ah my image test is not good enough. I need to re-work this is a bit. and I added two lines on expected files. I will fix it tomorrow.

karlcow avatar Jul 28 '22 15:07 karlcow

Screenshot 2022-07-29 at 9 31 18

karlcow avatar Jul 29 '22 00:07 karlcow

ok I'm at lost here wrt tests failures

@nt1m There are two tests constantly failing whatever I do. https://ews-build.s3-us-west-2.amazonaws.com/Windows-EWS/4fda7ef5-146569/results.html

If I remove the NEWLINE it says it needs one. If I had one it says that there should not be.

I'm confused.

karlcow avatar Jul 29 '22 01:07 karlcow

After running the tests locally:

% diff ~/code/OpenSource/WebKitBuild/Debug/layout-test-results/fast/table/min-width-html-block-table-actual.txt ~/code/OpenSource/WebKitBuild/Debug/layout-test-results/fast/table/min-width-html-block-table-expected.txt

Without NEWLINE, FAIL

97,98c97
< TEST COMPLETE
< 
---
> TEST COMPLETE
\ No newline at end of file

With the NEWLINE, FAIL

98d97
< 

karlcow avatar Jul 29 '22 04:07 karlcow

๐Ÿคฆ two NEWLINEs

karlcow avatar Jul 29 '22 05:07 karlcow

ok remaining issue is the image

Screenshot 2022-07-29 at 14 07 51

karlcow avatar Jul 29 '22 05:07 karlcow

Thanks!

nt1m avatar Aug 19 '22 01:08 nt1m

Committed 253581@main (8915be4c0470): https://commits.webkit.org/253581@main

Reviewed commits have been landed. Closing PR #2800 and removing active labels.

webkit-commit-queue avatar Aug 19 '22 04:08 webkit-commit-queue