Bug 245905 - Incorrect(?) rendering in imported/w3c/web-platform-tests/css/css-text/line-breaking/line-breaking-019.html
Summary: Incorrect(?) rendering in imported/w3c/web-platform-tests/css/css-text/line-b...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-09-30 15:57 PDT by zalan
Modified: 2022-10-07 15:58 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2022-09-30 15:57:17 PDT
This is about the "before" text at column#3 row#3.

The question is if a soft wrap opportunity is present between the out-of-flow box and its inflow siblings.

e.g
<style>
div { 
  border: solid;
  font-family: monospace;
  width: 130px;
}

img { 
  width: 10px; 
  height: 10px;
  background-color: blue; 
}
</style>
<div>first_line <img class=before>second_line</div>
<div>first_line <img style="position: absolute">second_line</div>

while the first <div> content breaks after the <img> (soft wrap opportunity is before and after the <img> inline level box), the second <div>'s content breaks _before_ the <img> at "first_line " with the whitespace trimmed.
Comment 1 Radar WebKit Bug Importer 2022-10-07 15:58:18 PDT
<rdar://problem/100916103>