-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Add missing handler in affected_by_invalidation_property()
...for :placeholder-shown pseudo-class.
- Loading branch information
1 parent
30dc919
commit a9603b7
Showing
3 changed files
with
34 additions
and
0 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
1 change: 1 addition & 0 deletions
1
...xt/expected/invalidate-style-of-element-with-placeholder-shown-used-on-nested-element.txt
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 @@ | ||
PASS (didn't crash) |
25 changes: 25 additions & 0 deletions
25
...Text/input/invalidate-style-of-element-with-placeholder-shown-used-on-nested-element.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,25 @@ | ||
<!DOCTYPE html> | ||
|
||
<head> | ||
<script src="include.js"></script> | ||
<style> | ||
#b input:placeholder-shown { | ||
border: 2px dashed red; | ||
background-color: #ffecec; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div id="a"><input type="text" placeholder=""></input></div> | ||
<script> | ||
test(() => { | ||
document.documentElement.offsetHeight; // force style recalculation | ||
const a = document.getElementById('a'); | ||
a.id = 'b'; | ||
println("PASS (didn't crash)"); | ||
}); | ||
</script> | ||
</body> | ||
|
||
</html> |