-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Input element with inherited display:ruby hits assert
https://bugs.webkit.org/show_bug.cgi?id=267130 rdar://120496475 Reviewed by Alan Baradlay. We only support ruby display types with ruby elements for now. They can be inherited to other elements though, leading to unexpected state. * LayoutTests/fast/ruby/input-with-inherited-ruby-display-expected.txt: Added. * LayoutTests/fast/ruby/input-with-inherited-ruby-display.html: Added. * Source/WebCore/style/StyleAdjuster.cpp: (WebCore::Style::hasUnsupportedRubyDisplay): (WebCore::Style::Adjuster::adjust const): Adjust the style to disallow non-ruby elements from having ruby display types. Canonical link: https://commits.webkit.org/272693@main
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
LayoutTests/fast/ruby/input-with-inherited-ruby-display-expected.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 @@ | ||
This test passes if it doesn't crash. |
10 changes: 10 additions & 0 deletions
10
LayoutTests/fast/ruby/input-with-inherited-ruby-display.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,10 @@ | ||
<script> | ||
if (window.testRunner) | ||
testRunner.dumpAsText(); | ||
</script> | ||
<style> | ||
input { display: inherit; } | ||
</style> | ||
<ruby> | ||
<input> | ||
This test passes if it doesn't crash. |
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