W3C home > Mailing lists > Public > public-css-testsuite@w3.org > January 2015

Re: [css-writing-mode] change a structure of text-baseline test cases.

From: Gérard Talbot <css21testsuite@gtalbot.org>
Date: Wed, 07 Jan 2015 17:13:41 -0500
To: 塩澤 元 (Shiozawa, Hajime) <hajime.shiozawa@gmail.com>
Cc: fantasai <fantasai.lists@inkedblade.net>, Public CSS test suite mailing list <public-css-testsuite@w3.org>
Message-ID: <19890b31fb1223c3f4b40cf5997e811a@gtalbot.org>
Le 2014-11-23 01:59, fantasai a écrit :


> These are the effects of the dominant baseline:
>   * when glyphs of different sizes are aligned to each other

(...)

> Alignment of Different-size Text
> --------------------------------
> 
> To test different sizes, we will need some text on the line that is of 
> at
> least two different sizes. I suggest using three sizes, to test sizing 
> both
> up and down. For example,
> 
>   <p>A<big>B<small>C</small>B</big>A</p>
> 
> (Please substitute <span> and CSS instead of <big>/<small>. 
> 30px/50px/10px
> should show off the differences adequately.)

Hajime,

Example given:

I used 60px/90px/30px in this example file for central baseline:

http://www.gtalbot.org/BrowserBugsSection/CSS3WritingModes/dominant-baseline-central-glyphs-diff-sizes.xht

You can reuse this code for your text-baseline-* (and/or 
dominant-baseline-*) tests.


> For central alignment, we can use different-colored squares ("A") and 
> require
> that the squares be perfectly centered with respect to each other.
> 
> For alphabetic alignment, we can use "É" glyphs (or "p" glyphs) all of 
> the
> same color and require that the appropriate side of the resulting shape 
> is
> straight.

For alphabetic baseline:

http://www.gtalbot.org/BrowserBugsSection/CSS3WritingModes/dominant-baseline-alphabetic-glyphs-diff-sizes.xht

You can reuse this code for your text-baseline-* (and/or 
dominant-baseline-*) tests.

I used fuchsia color because there is a swatch-fuchsia.png support 
image.

Gérard

> The reference files for each can be made using backgrounds or borders
> and margins on normal blocks or floated blocks (no 'writing-mode'), as
> appropriate. Make sure the boxes all have the same margin-box size, so
> that we don't need to worry about how they are aligned!

-- 
Test Format Guidelines
http://testthewebforward.org/docs/test-format-guidelines.html

Test Style Guidelines
http://testthewebforward.org/docs/test-style-guidelines.html

Test Templates
http://testthewebforward.org/docs/test-templates.html

CSS Naming Guidelines
http://testthewebforward.org/docs/css-naming.html

Test Review Checklist
http://testthewebforward.org/docs/review-checklist.html

CSS Metadata
http://testthewebforward.org/docs/css-metadata.html
Received on Wednesday, 7 January 2015 22:14:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 20 January 2023 19:58:20 UTC