mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
Auto merge of #12760 - splav:inline_split_fixes#12699, r=notriddle
Inline split fixes#12699 <!-- Please describe your changes on the following line: --> Fix fragment splitting algorithm to set FIRST/LAST_FRAGMENT_OF_ELEMENT flag correctly, account for border_padding for border_box and set zero border_padding between for new fragments. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12699 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12760) <!-- Reviewable:end -->
This commit is contained in:
commit
2420dc4a3e
8 changed files with 78 additions and 9 deletions
|
@ -816,6 +816,18 @@
|
|||
"url": "/_mozilla/css/border_collapse_simple_a.html"
|
||||
}
|
||||
],
|
||||
"css/border_inline_split.html": [
|
||||
{
|
||||
"path": "css/border_inline_split.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/border_inline_split_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/border_inline_split.html"
|
||||
}
|
||||
],
|
||||
"css/border_radius_asymmetric_sizes_a.html": [
|
||||
{
|
||||
"path": "css/border_radius_asymmetric_sizes_a.html",
|
||||
|
@ -9970,6 +9982,18 @@
|
|||
"url": "/_mozilla/css/border_collapse_simple_a.html"
|
||||
}
|
||||
],
|
||||
"css/border_inline_split.html": [
|
||||
{
|
||||
"path": "css/border_inline_split.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/border_inline_split_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/border_inline_split.html"
|
||||
}
|
||||
],
|
||||
"css/border_radius_asymmetric_sizes_a.html": [
|
||||
{
|
||||
"path": "css/border_radius_asymmetric_sizes_a.html",
|
||||
|
|
20
tests/wpt/mozilla/tests/css/border_inline_split.html
Normal file
20
tests/wpt/mozilla/tests/css/border_inline_split.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!doctype html>
|
||||
<html><head>
|
||||
<link rel=match href=border_inline_split_ref.html>
|
||||
<meta content="ahem dom" name="flags">
|
||||
<style>
|
||||
div {
|
||||
font: 20px/1 Ahem;
|
||||
width: 7em;
|
||||
}
|
||||
span {
|
||||
border-left: yellow solid 0.5em;
|
||||
border-right: yellow solid 0.5em;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<span>Very long |</span>
|
||||
</div>
|
||||
</body></html>
|
14
tests/wpt/mozilla/tests/css/border_inline_split_ref.html
Normal file
14
tests/wpt/mozilla/tests/css/border_inline_split_ref.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<html><head>
|
||||
<meta content="ahem dom" name="flags">
|
||||
<style>
|
||||
span {
|
||||
font: 20px/1 Ahem;
|
||||
border-left: yellow solid 0.5em;
|
||||
border-right: yellow solid 0.5em;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<span>Very <br>long |</span>
|
||||
</body></html>
|
Loading…
Add table
Add a link
Reference in a new issue