Bug 193431 - [LFC] Use the containing block's padding box to position out-of-flow elements.
Summary: [LFC] Use the containing block's padding box to position out-of-flow elements.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-01-14 20:48 PST by zalan
Modified: 2019-01-15 06:49 PST (History)
6 users (show)

See Also:


Attachments
Patch (18.69 KB, patch)
2019-01-14 21:27 PST, zalan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2019-01-14 20:48:37 PST
https://www.w3.org/TR/CSS22/visudet.html

If the element has 'position: absolute', the containing block is established by the nearest ancestor with a 'position' of 'absolute', 'relative' or 'fixed', in the following way:
In the case that the ancestor is an inline element, the containing block is the bounding box around the padding boxes of the first and the last inline boxes generated for that element. In CSS 2.2, if the inline element is split across multiple lines, the containing block is undefined.
Otherwise, the containing block is formed by the padding edge of the ancestor.
Comment 1 zalan 2019-01-14 21:27:19 PST
Created attachment 359133 [details]
Patch
Comment 2 WebKit Commit Bot 2019-01-15 06:49:01 PST
Comment on attachment 359133 [details]
Patch

Clearing flags on attachment: 359133

Committed r239983: <https://trac.webkit.org/changeset/239983>
Comment 3 WebKit Commit Bot 2019-01-15 06:49:02 PST
All reviewed patches have been landed.  Closing bug.
Comment 4 Radar WebKit Bug Importer 2019-01-15 06:49:28 PST
<rdar://problem/47283045>