forked from servo/servo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Properly handle stacking context collection for truncated fragments
Before we did not properly descend intro truncated fragments when collecting stacking contexts. This change makes sure that we descend properly Fixes servo#18254. Fixes servo#17072.
- Loading branch information
Showing
4 changed files
with
105 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
tests/wpt/mozilla/tests/css/truncated_text_fragment_stacking_context.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!DOCTYPE html> | ||
<title>Truncated text and inline-blocks combined should not cause a panic</title> | ||
<link rel="match" href="truncated_text_fragment_stacking_context_ref.html" /> | ||
<link rel="help" href="https://www.w3.org/TR/css-position-3/#sticky-pos" /> | ||
<meta name="assert" content="This test checks that truncated text and inline-blocks don't cause a panic." /> | ||
|
||
<!-- We are using transparent text here to avoid having to deal with subpixel text rendering issues. --> | ||
<style> | ||
a { | ||
float: left; | ||
color: transparent; | ||
} | ||
p, em { | ||
overflow:hidden | ||
} | ||
|
||
em { | ||
display: inline-block; | ||
text-overflow: ellipsis; | ||
color: transparent; | ||
} | ||
|
||
div { | ||
position: absolute | ||
} | ||
</style> | ||
|
||
<div style="height: 100px; width: 100px; background: green;"></div> | ||
|
||
<div> | ||
<a>LINK</a> | ||
<p><em>TEXT</em></p> | ||
</div> |
3 changes: 3 additions & 0 deletions
3
tests/wpt/mozilla/tests/css/truncated_text_fragment_stacking_context_ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<!DOCTYPE html> | ||
<title>Truncated text and inline-blocks combined should not cause a panic</title> | ||
<div style="width: 100px; height: 100px; background: green"></div> |