Bug 236626

Summary: [css-grid] Absolutely positioned children using 'auto' placement don't cover margin correctly when using RTL
Product: WebKit Reporter: Matt Woodrow <mattwoodrow>
Component: CSSAssignee: Matt Woodrow <mattwoodrow>
Status: RESOLVED FIXED    
Severity: Normal CC: changseok, clopez, dino, esprehn+autocc, ews-watchlist, glenn, jfernandez, kondapallykalyan, pdr, rego, svillar, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/web-platform-tests/wpt/pull/32850
Bug Depends on:    
Bug Blocks: 236694    
Attachments:
Description Flags
Patch none

Description Matt Woodrow 2022-02-14 18:01:48 PST
It looks like our array of column positions is ordered logically (column 0 is the physical right-edge when using RTL), but is always shifted by the physical left border and padding.

When computing the breadth of an abs-pos item that covers the padding area (using 'auto'), we need to account for this, since the auto lines are purely in logical coords.
Comment 1 Matt Woodrow 2022-02-14 18:05:01 PST
Created attachment 451974 [details]
Patch
Comment 2 EWS Watchlist 2022-02-14 18:06:49 PST
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Comment 3 EWS 2022-02-17 09:59:06 PST
Committed r290032 (247412@main): <https://commits.webkit.org/247412@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 451974 [details].
Comment 4 Radar WebKit Bug Importer 2022-02-17 10:00:38 PST
<rdar://problem/89093512>