[Webkit-unassigned] [Bug 255844] New: Add padding:1px to <td> and <th> outside tables, per spec

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Apr 23 11:57:09 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=255844

            Bug ID: 255844
           Summary: Add padding:1px to <td> and <th> outside tables, per
                    spec
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: BrowserCompat, WPTImpact
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ahmad.saleem792 at gmail.com
                CC: akeerthi at apple.com, annevk at annevk.nl, ntim at apple.com,
                    zalan at apple.com

Hi Team,

While going through Blink's commit, I came across following UA Stylesheet update commit:

Commit - https://chromium.googlesource.com/chromium/src/+/c5ecd6d100aeefb1b77c310beb11e458fc2d139c

Failing WPT Test Case - http://wpt.live/css/css-tables/html-to-css-mapping-1.html

Web-Spec: https://html.spec.whatwg.org/#tables-2

Our UA Stylesheet does not have following:

td, th { padding: 1px; }

^ Adding this manually in the local branch fixed the failing sub-test in WPT testcase but I don't know whether it would've any unintended effect.

Blink added this with different rule in their stylesheet because they had some styling enforced via HTMLTableCellElement::AdditionalPresentationAttributeStyle() function.

I didn't find any special styling within WebKit in HTMLTableCellElement though.

Appreciate if someone can confirm, if my understanding is right and I am happy to do PR.

Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230423/3ffe0f8c/attachment.htm>


More information about the webkit-unassigned mailing list