forked from WebKit/WebKit
-
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.
[Ruby] Do not apply annotation overhang when ruby-overhang is none
https://bugs.webkit.org/show_bug.cgi?id=278893 Reviewed by Antti Koivisto. * Source/WebCore/layout/formattingContexts/inline/ruby/RubyFormattingContext.cpp: (WebCore::Layout::RubyFormattingContext::applyRubyOverhang): Canonical link: https://commits.webkit.org/283005@main
- Loading branch information
1 parent
798529e
commit 71ad05b
Showing
4 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
LayoutTests/imported/w3c/web-platform-tests/css/css-ruby/ruby-overhang-expected.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,16 @@ | ||
<!DOCTYPE html> | ||
<meta charset="UTF-8"> | ||
<title>Tests for ruby-overhang: none</title> | ||
<link rel="stylesheet" href="/fonts/ahem.css"> | ||
<style> | ||
div { | ||
font: 16px/5 Ahem; | ||
} | ||
span { | ||
color: transparent; | ||
font-size: 8px; /* annotation -> 50% */ | ||
} | ||
</style> | ||
<div>X<span>XXX</span>X</div> | ||
<div>X<span>XXXX</span>X</div> | ||
<div>X<span>XXXX</span>X</div> |
16 changes: 16 additions & 0 deletions
16
LayoutTests/imported/w3c/web-platform-tests/css/css-ruby/ruby-overhang-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,16 @@ | ||
<!DOCTYPE html> | ||
<meta charset="UTF-8"> | ||
<title>Tests for ruby-overhang: none</title> | ||
<link rel="stylesheet" href="/fonts/ahem.css"> | ||
<style> | ||
div { | ||
font: 16px/5 Ahem; | ||
} | ||
span { | ||
color: transparent; | ||
font-size: 8px; /* annotation -> 50% */ | ||
} | ||
</style> | ||
<div>X<span>XXX</span>X</div> | ||
<div>X<span>XXXX</span>X</div> | ||
<div>X<span>XXXX</span>X</div> |
17 changes: 17 additions & 0 deletions
17
LayoutTests/imported/w3c/web-platform-tests/css/css-ruby/ruby-overhang.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,17 @@ | ||
<!DOCTYPE html> | ||
<meta charset="UTF-8"> | ||
<title>Tests for ruby-overhang: none</title> | ||
<link rel="help" href="https://drafts.csswg.org/css-ruby-1/#ruby-overhang"> | ||
<link rel="match" href="ruby-overhang-ref.html"> | ||
<link rel="stylesheet" href="/fonts/ahem.css"> | ||
<style> | ||
div { | ||
font: 16px/5 Ahem; | ||
} | ||
ruby, rt { | ||
color: transparent; | ||
} | ||
</style> | ||
<div>X<ruby>X<rt>XXXX</rt></ruby>X</div> | ||
<div>X<ruby style="ruby-overhang: none">X<rt>XXXX</rt></ruby>X</div> | ||
<div style="ruby-overhang: none">X<ruby>X<rt>XXXX</rt></ruby>X</div> |
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