Skip to content

Commit

Permalink
RubyLB: ruby-position should be valid for ::first-line
Browse files Browse the repository at this point in the history
https://drafts.csswg.org/css-pseudo/#first-line-styling
> * the ruby-position property (see [CSS-RUBY-1])

Bug: 324111880
Change-Id: Icc8901b29d0352b1cfa50238fca969884c5fa9a7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5526384
Commit-Queue: Koji Ishii <kojii@chromium.org>
Reviewed-by: Koji Ishii <kojii@chromium.org>
Auto-Submit: Kent Tamura <tkent@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1299087}
  • Loading branch information
tkent-google authored and chromium-wpt-export-bot committed May 10, 2024
1 parent 9c8d50c commit ef0e939
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions css/css-ruby/pseudo-first-line-ref.html
@@ -0,0 +1,3 @@
<!DOCTYPE html>
<div>foo <ruby style="ruby-position:under">base<rt>annotation</rt></ruby><br>
bar <ruby>base<rt>annotation</rt></ruby></div>
11 changes: 11 additions & 0 deletions css/css-ruby/pseudo-first-line.html
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-ruby/#placement">
<link rel="help" href="https://drafts.csswg.org/css-pseudo/#first-line-styling">
<link rel="match" href="pseudo-first-line-ref.html">
<style>
div::first-line {
ruby-position: under;
}
</style>
<div>foo <ruby>base<rt>annotation</rt></ruby><br>
bar <ruby>base<rt>annotation</rt></ruby></div>

0 comments on commit ef0e939

Please sign in to comment.