Summary: | clientWidth/clientHeight should include borders for tables | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Joonghun Park <jh718.park> | ||||||||||||
Component: | Tables | Assignee: | Joonghun Park <jh718.park> | ||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||
Severity: | Normal | CC: | cdumez, cmarcelo, commit-queue, darin, dbates, esprehn+autocc, ews-watchlist, glenn, gregsimon, gyuyoung.kim, kangil.han, koivisto, kojii, kondapallykalyan, pdr, rniwa, simon.fraser, webkit-bug-importer, zalan | ||||||||||||
Priority: | P2 | Keywords: | BrowserCompat, InRadar | ||||||||||||
Version: | WebKit Nightly Build | ||||||||||||||
Hardware: | Unspecified | ||||||||||||||
OS: | Unspecified | ||||||||||||||
See Also: | https://bugs.chromium.org/p/chromium/issues/detail?id=978019 | ||||||||||||||
Attachments: |
|
Description
Joonghun Park
2019-08-21 05:43:18 PDT
Created attachment 376866 [details]
table_border_collapse_bug.html
The corresponding csswg discussion: https://github.com/w3c/csswg-drafts/issues/4245 Created attachment 379826 [details]
Patch
Created attachment 379851 [details]
Patch
Created attachment 379852 [details]
Patch
Could you please review this patch? Comment on attachment 379852 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=379852&action=review > LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/table-client-props-expected.txt:10 > -FAIL Table with separated border assert_equals: Table with separated border clientWidth expected 26 but got 14 > -FAIL Table with collapsed border assert_equals: Table with collapsed border clientWidth expected 26 but got 14 > +FAIL Table with separated border assert_equals: Table with separated border clientWidth expected 26 but got 20 > +FAIL Table with collapsed border assert_equals: Table with collapsed border clientWidth expected 26 but got 20 Why doesn't this start passing? Created attachment 379895 [details]
Update wpt test cases
(In reply to Antti Koivisto from comment #8) > Comment on attachment 379852 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=379852&action=review > > > LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/table-client-props-expected.txt:10 > > -FAIL Table with separated border assert_equals: Table with separated border clientWidth expected 26 but got 14 > > -FAIL Table with collapsed border assert_equals: Table with collapsed border clientWidth expected 26 but got 14 > > +FAIL Table with separated border assert_equals: Table with separated border clientWidth expected 26 but got 20 > > +FAIL Table with collapsed border assert_equals: Table with collapsed border clientWidth expected 26 but got 20 > > Why doesn't this start passing? That's related with box-sizing: content-box. This css property for table is not supported in Blink and WebKit yet, so I think that issue could be addressed as a separate bug. If possible, I'd like to see that issue on both engine. Comment on attachment 379895 [details]
Update wpt test cases
Ok, r=me
(In reply to Antti Koivisto from comment #11) > Comment on attachment 379895 [details] > Update wpt test cases > > Ok, r=me Thank you for your review, Antti:) Comment on attachment 379895 [details] Update wpt test cases Clearing flags on attachment: 379895 Committed r250553: <https://trac.webkit.org/changeset/250553> All reviewed patches have been landed. Closing bug. |