Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layout: Allocate inline box start space on segment #46782

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions css/CSS2/normal-flow/inline-box-border-line-break-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<link
rel="help"
href="https://drafts.csswg.org/css2/#inline-formatting"
/>
<link rel="help" href="https://github.com/servo/servo/pull/32486" />
<link rel="author" href="mrobinson@igalia.com" />
<link rel="author" href="atbrakhi@igalia.com" />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<body>

<div style="width: 80px; outline: solid 1px black; font: 20px/1 Ahem;">
xx
<div style="display: inline-block; padding-left: 50px;">x</div>
xx
</div>

</body>
</html>


26 changes: 26 additions & 0 deletions css/CSS2/normal-flow/inline-box-border-line-break.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<link
rel="help"
href="https://drafts.csswg.org/css2/#inline-formatting"
/>
<link rel="help" href="https://github.com/servo/servo/pull/32486" />
<link rel="author" href="mrobinson@igalia.com" />
<link rel="author" href="atbrakhi@igalia.com" />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<meta name="assert" content="Inline borders should cause content that follows to wrap." />
<link rel="match" href="inline-box-border-line-break-ref.html" />
<body>

<div style="width: 80px; outline: solid 1px black; font: 20px/1 Ahem;">
xx
<!- The left border on this span should trigger a line break before the
final xx. -->
<span style="border-left: 50px solid transparent">x</span>
xx
</div>

</body>
</html>


26 changes: 26 additions & 0 deletions css/CSS2/normal-flow/inline-box-padding-line-break.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<link
rel="help"
href="https://drafts.csswg.org/css2/#inline-formatting"
/>
<link rel="help" href="https://github.com/servo/servo/pull/32486" />
<link rel="author" href="mrobinson@igalia.com" />
<link rel="author" href="atbrakhi@igalia.com" />
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<meta name="assert" content="Inline padding should cause content that follows to wrap." />
<link rel="match" href="inline-box-border-line-break-ref.html" />
<body>

<div style="width: 80px; outline: solid 1px black; font: 20px/1 Ahem;">
xx
<!- The left padding on this span should trigger a line break before the
final xx. -->
<span style="padding-left: 50px;">x</span>
xx
</div>

</body>
</html>