00:20:15 RRSAgent has joined #css 00:20:15 logging to http://www.w3.org/2011/06/02-css-irc 00:20:25 Zakim has joined #css 00:20:34 vhardy has joined #css 00:20:43 ScribeNick: dbaron 00:20:54 kojiishi has joined #css 00:20:55 Meeting: CSS Working Group Face-to-Face Meeting, Kyoto, Japan 00:25:34 Present: Daniel Davis (Opera), John Daggett (Mozilla), Sylvain Galineau (Microsoft), David Baron (Mozilla), Koji Ishii, Florian Rivoal (Opera), Steve Zilles (Adobe), Vincent Hardy (Adobe), Bert Bos (W3C), Taro Yamamoto (Adobe), Nat McCully (Adobe), Shane Stevens (Google), Luke McPherson (Google), Ted O'Connor (Apple), Peter Linss (HP), Elika Etemad (Invited Expert), Shinyu Murakami (Antenna House), Shunchi Seko (NTT), Kazutaka Yamamoto (NTT) 00:25:48 http://wiki.csswg.org/planning/japan-2011 00:26:34 Topic: Agenda 00:26:44 Steve: Want Writing Modes, Text, and Line Grid for today 00:26:52 shans has joined #css 00:26:52 Nat: Here today, and tomorrow until noon. 00:27:08 Florian: Would like CSS Device Adaptation for tomorrow afternoon so Europe can call in 00:27:16 Ted: Simon wants to call in for animations and transitions, so morning better for that 00:27:25 macpherson has joined #css 00:27:57 Present: Daniel Davis (Opera), John Daggett (Mozilla), Sylvain Galineau (Microsoft), David Baron (Mozilla), Koji Ishii, Florian Rivoal (Opera), Steve Zilles (Adobe), Alex Mogilevsky (Microsoft), Vincent Hardy (Adobe), Bert Bos (W3C), Taro Yamamoto (Adobe), Nat McCully (Adobe), Shane Stevens (Google), Luke McPherson (Google), Tab Atkins (Google), Ted O'Connor (Apple), Peter Linss (HP), Elika Etemad (Invited Expert), Shinyu Murakami (Antenna House), Shunchi Seko 00:27:57 (NTT), Kazutaka Yamamoto (NTT) 00:27:59 various: charter 00:28:06 nmccully has joined #css 00:28:07 jdaggett: Would like to do css3-fonts on Saturday morning. 00:28:14 florian has joined #css 00:28:18 jdaggett: Would also like to discuss feature support (dbaron's post to list) 00:28:46 jdaggett: ... relates to one of font subjects and to vertical text. 00:28:50 s/McPherson/Macpherson 00:28:55 Sylvain: Talk about dropping prefixes? 00:29:18 Sylvain: If you have to submit test cases before dropping prefixes, and you have vendor prefixes in your test cases... 00:29:41 Steve: Taro can't be here after Friday for fonts. 00:29:53 jdaggett: I wanted to talk about sub/superscript and same origin; probably less interesting for Taro. 00:30:07 jdaggett: If we wanted to talk about IVS, we could do that tomorrow. 00:30:28 jdaggett: Elika put in an item about unifying variant glyphs; we can talk about it in the context of that. 00:30:45 Peter: Talk about feedback from forums earlier in the meeting? (This morning?) 00:31:18 TabAtkins has joined #css 00:31:31 szilles has joined #css 00:31:33 alexmog has joined #css 00:31:44 Steve: Regions and Exclusions not Saturday afternoon (I have to leave) 00:36:41 Peter: I'll get the schedule on the wiki. 00:36:45 Topic: Feedback on the forum 00:37:47 Steve: Things that struck me most from the forum: there's a requirement for simple formatting in vertical mode, and there's also a requirement for quality formatting in vertical mode. To me that suggests an 80/20 solution where the default does 80% of the cases but we need a mechanism to specify the other 20% of the cases that require more careful control of the formatting. 00:38:25 ourmaninjapan has joined #css 00:38:26 Steve: Another observation: there was a big discussion of signage and large things, and it seemed to me that was really related to the issue of the size on the canvas vs. the size the thing was actually displayed at. 00:38:39 Steve: This goes back to the discussion of how pixels relate to concrete units. 00:39:09 Steve: I don't think the people doing the signs were aware they don't have to make the fonts that size; they can make the fonts the size of a sheet of paper and the medium they project onto is that size. So that's probably a red herring. 00:39:23 Alex: Nothing wrong with specifying font size in inches/centimeters. 00:39:39 Nat: Some authoring software has limits on font size, or may not be able to handle a canvas that big. 00:39:42 ?: Not a standards issue. 00:40:25 Nat: If we're interested, maybe Koji-san could get more feedback on details of what the problems were with signage. 00:40:59 Koji: Two or three publishers repeatedly said that they tried to use ruby but that ruby implementations changed line spacing so they gave up. 00:41:17 Ted: That seems like low-hanging fruit. 00:41:31 Nat: A number of issues about line-height calculation we can discuss (and then segue into grid). 00:42:10 Koji: Other big discussion was private characters (Gaiji). Related to IVS discussion; use cases for private characters were shown. 00:42:26 Koji: Important for people's names and place names. 00:42:51 Koji: The space of ideographs is open-ended. 00:43:25 Taro: Archaeologists may need to publish paper about ancient Chinese history that needs old Chinese characters that are not widely used in everyday Japanese. 00:44:12 Ted: Seems like two cases: (1) you're the archaeologist who's discovered this character, but (2) probably more common use case is things like personal names... political party (4 glyphs). 00:44:38 jdaggett: You can do kumimoji (4 glyphs) today as discretionary ligature, which is a much better solution than trying to define variants or new codepoints, since it's a stylization. 00:45:14 Koji: Kumimoji can be discretionary ligatures, but still needs creation of fonts. 00:45:48 jdaggett: Styling text in an old-style way (which he suggested was a use case for private characters) is a bad use case for codepoints. 00:45:58 jdaggett: ... could be standardized as an OpenType feature. 00:46:27 jdaggett: There are a lot of correlary cases in Western text, and there are OpenType features to support that kind of thing. 00:46:49 jdaggett: We need to avoid letting stylization creep in to codepoints. 00:47:02 Nat: Can you get to arbitrary OpenType features from CSS? 00:47:15 jdaggett: With css3-fonts (and in Firefox 4), yes. 00:47:33 (description of how it works) 00:48:17 Taro: I think main usage of Gaiji (extraneous characters): variants of unencoded (?) characters, or special symbol on keyboard in computer manual. 00:48:36 Taro: I wonder if there's an easy method for user to access a glyph in a font if such a character is unencoded. 00:48:45 jdaggett: CSS only goes down to the codepoint level; beyond that it's up to the font. 00:48:54 jdaggett: No way to directly get a CID. 00:49:12 Nat: That's a problem for Japanese fonts -- the assumption that everything is encoded is not true. 00:49:24 jdaggett: What are those glyphs for? 00:49:36 Nat: Kanji that are not encoded in Unicode and not variants of a base character. 00:49:46 jdaggett: Sounds like a case for PUA. 00:50:16 Nat: PUA is a bad thing; in PDF we use the CID and the font. That's not the best way to do it in the general way. 00:50:21 jdaggett: What's the fallback? 00:50:41 Nat: At the point that you're dealing with a glyph that isn't encoded, you've really lost a lot of information. You're just talking about a glyph, it doesn't have meaning and isn't searchable. 00:51:34 Nat: When you insert those glyphs with the glyph panel in InDesign -- we insert either U+FFFD or ... -- one of them we assume is a Japanese character by its mojikumi class and one we assume is a Roman character by its mojikumi class. 00:51:49 Nat: I realize adding markup saying font=... cid=... is not a good thing to do. 00:51:58 Nat: But there is a definite need in Japanese fonts to access unencoded glyphs. 00:52:29 Florian: ... 00:52:59 dbaron: It feels like we're trying to add something to CSS to work around Unicode's failure to add something to Unicode 00:53:19 dbaron: I think if there's a real need for this, people should go to Unicode and get the characters they need added to Unicode added to Unicode 00:53:58 Nat: ... 00:54:18 fantasai: What about ideographic description (codepoints in Unicode that allow description of a character as composition of others). 00:54:38 fantasai: For most characters that should get you something that's unique and that the font could make a ligature out of. 00:55:20 fantasai: Doesn't deal with ..., but as an escape hatch seems much better than using the replacement character. 00:55:50 Taro: Variants ... included in Adobe-Japan1 6 (?) ... possible to make a mapping table that says that ??? maps to this combination of IVS. 00:56:30 Taro: IDS (?) cannot uniquely reproduce intended glyph shape. 00:57:03 Taro: Without Adobe-Japan1 6 and ... 00:57:26 fantasai: I'm not saying we should use IDS to compose glyphs; I'm saying you can use IDS to describe the glyphs you're trying to access. 00:57:38 Nat: A little better than just a replacement character, but still can't go from that to a glyph. 00:58:25 fantasai: Each unencoded character likely to have unique IDS. 00:58:52 Nat: A lot of unencoded characters are very minor variants; many not encoded at all prior to Adobe-Japan1 4. 00:59:20 jdaggett: We're talking about CIDs here. I don't think most people in room aware of what CID is. Not a generalized solution. 01:00:37 Nat: A CID is a glyph ID that is unique to a certain font technology called a CID-keyed font. There's a mapping of character to glyph ID. Because the CID numbering is standardized across fonts Adobe-Japan1.6, 1.5, 1.4 examples of collection... so you can get character that's semantically the same even across fonts. 01:00:51 Nat: For TrueType fonts you just have glyph IDs which are in any order. 01:01:14 Florian: The problem on the encoding point is that Unicode doesn't encode fast enough -- can't we just have the same problem with CIDs? 01:01:20 Nat: Adobe controls CIDs... 01:01:41 jdaggett: If you're using InDesign, you know the content and the font. You can't guarantee that on the Web across devices. There's no possible fallback mechanism here. 01:01:57 szilles has joined #css 01:02:11 jdaggett: The term Gaiji is problematic -- you're not sure what people are talking about it when they use it. 01:03:05 Nat: My first thought is that we need a way to access a glyph within a font that's not dependent on Unicode. The only way I can think to do that is saying that all bets are off, and you're depending on the font... specify exact font/version/even checksum. Even though it's heavy-handed, it seems necessary. 01:03:18 Nat: We should consider this and acknowledge that there's this need. 01:03:27 jdaggett: You're going to a very low level. 01:03:41 jdaggett: Everything we've done in CSS is predicated on dealing with a Unicode stream. 01:04:21 Steve: This isn't an East Asian font problem -- my computer has a key with a flag on it that I suspect is not encoded in Unicode. 01:04:24 various: might be 01:04:48 jdaggett: Unicode folks have encoded emoticons, which are graphics. Apple has magical tables in fonts with 10.7. 01:05:53 jdaggett: Problem is that the basic model of CSS text (and the same is true for SVG fonts) is that text you're not specifying paint -- you're specifying a mask that's used to paint, and that outline is filled with the 'color'. Not clear what happens how emoticons mix with the 'color' property. Other things like this come into play, but I'm not sure how to address at CSS level... at least until Apple has standardized these tables. 01:05:59 Nat: Something to be added to WOFF? 01:06:17 jdaggett: I think we can't define anything until somebody else has said what the basis is. 01:06:51 jdaggett: I'm uncomfortable pushing CSS into areas... we shouldn't be defining font formats. WOFF is not really a font format; it's a font packaging format with OpenType. 01:07:17 Nat: My understanding is... whether or not it should go into CSS should be based on whether the need is big enough for a convenient way to mark up the content? 01:07:37 jdaggett: I'd look at it more as whether there's a stable technology in common use that we can expose to authors. 01:08:44 jdaggett: I'm wary of inventing feature proposals. We can sort of push back on the OpenType guys... for example, I've been saying the OpenType spec needs to be more flushed out about features not having set of defaults, which features are mutually exclusive, which win over which others. We're gauging based on common practice for the spec. 01:09:01 Nat: Counter to my proposal would be to say that you do have to have every glyph encoded. 01:09:45 jdaggett: I wouldn't necessarily say that. We've had proposals to support horizontal scaling. I think it's a good proposal, but I think we need to take things in steps, and I think that should go in a future version of the spec rather than what we're writing right now. I see the problem and that it would be good to have a solution, but I don't see a clear path. 01:10:04 Nat: Maybe we could come up with a markup solution that's better than glyph IDs. 01:10:14 jdaggett: I think markup would be best for this. (?) 01:10:26 Florian: I'm not sure markup in the best place to do ... 01:10:40 jdaggett: You're not styling content; you're specifying the content -- should be in markup. 01:11:46 (missed a little) 01:12:00 Steve: To represent something that isn't encoded, shouldn't use an encoding. 01:12:07 Nat: To some people this will be content, and to some it will be style. 01:12:28 Peter: There are other gray areas between content and presentation. 01:12:35 Peter: e.g., the 'content' property 01:13:03 -> http://www.unicode.org/versions/Unicode6.0.0/ch12.pdf Section 12.2 of Unicode describing I(deographic) D(escription) S(equences), a way to describe how an ideographs looks in 12 steps, in particular for ideographs that aren't in Unicode 01:13:07 -> http://www.w3.org/TR/2003/REC-SVG11-20030114/text.html#AlternateGlyphs SVG's altGlyph element [that should maybe be in HTML as well?] 01:13:13 Peter: actionable next steps? 01:13:33 I meant: markup is good to specify that you want a particular unencoded character. You still need some way to specify what that character is supposed to look like, and that's probably not in markup. 01:13:46 jdaggett: Nat, if you want to come up with a proposal, I can work with you on figuring out the right set of things. 01:14:37 Florian: I used to work on a non-HTML system... markup with image. CSS lets you say "use an image" or "use a video", but you can't say "use this glyph". 01:14:59 boblet has joined #css 01:15:18 Peter: ... 01:15:24 jdaggett: Not sure content property is right 01:15:28 Steve: altGlyph was doing that in SVG. 01:15:57 jdaggett: It feels weird that authors would be authoring documents where they were putting in spans that they then go and specify the meaning of that span in CSS. 01:16:17 Ted: really want the markup to carry the meaning fully, and be able to select for that meaning in the CSS. 01:16:31 jdaggett: Then you can write rules in the CSS to say how the fallback works. 01:16:50 Nat: Fallback can either be (a) give me what's semantically equivalent or (b) no, I really need this glyph shape. 01:17:02 jdaggett: I think we don't want to map ... into a fallback process. 01:17:43 Nat: Thinking of ... gives real Gaiji and on phone gives semantically equivalent base character. 01:17:59 jdaggett: Did we complete everything you wanted to say about Gaiji? 01:18:02 Koji: yes 01:18:09 Peter: Other topics we want to dive into? 01:18:26 Ted: Some things I thought was more an evangelism issue than feature needed in CSS. 01:18:37 Ted: e.g., mixed writing modes 01:18:50 jdaggett: Well, this is a feature still in development. 01:19:04 Peter: Could be they tried and found they can't rely on it. 01:19:31 Koji: Another issue: CSS can't center within the block progression direction. 01:19:35 fantasai: Tab is working on it. 01:19:45 fantasai: ... in flexbox. 01:20:11 fantasai: Would turn box into a BFC root and the contents would be centered. 01:20:18 Nat: distribute lines evenly? 01:20:36 fantasai: Don't have that yet, could work on. 01:20:50 fantasai: But we do need to finish things and then work on the next thing. 01:21:32 jdaggett: I was surprised at a number of ... repeated instances of misinformation. e.g., this notion that I've seen both in tweets from Tokyo meeting and yesterday during presentation, that SVG fonts are necessary for Gaiji. I don't understand where these memes start, and I think it's unfortunate. 01:21:57 Florian: Easy bad way to do Gaiji is image, or vector graphic... 01:22:30 jdaggett: ... imagining features. No inherent advantage of SVG font over OpenType font, other than maybe being able to edit live. 01:22:41 Peter, Florian: People have tools to make SVG fonts. 01:22:51 jdaggett: That's a tools problem... and there are tools (fontforge) that can convert. 01:23:06 Florian: Why get it in to a font if you've drawn it in SVG? 01:23:33 jdaggett: It's a simplified view of how fonts work. SVG fonts draw as a graphic rather than as text; SVG fonts draw as a graphic, not as text. Don't have any subpixel AA, etc. 01:23:52 Florian: I don't think it's the right solution; there's no current right solution. 01:24:21 jdaggett: I think people with certain workflows are making exaggerated statements... is a valid workflow but shouldn't be a required workflow. 01:24:38 Steve: Seems like the same problem that occurs everywhere on the Web -- if people find a way to do something, they'll use it. 01:25:09 Peter: It's been a characteristic of the Web (and a feature) since the beginning. 01:26:59 Taro: Question about SVG Fonts: I hear from SVG advocates in Japan that SVG fonts that it's possible to use ligature mechanism to access a glyph in an SVG font. So in typical Western case ("fi"), you specify component characters f and i and it results in the ligature for fi. They want to use that mechanism to access Gaiji characters by specifying component characters that have nothing to with the Gaiji character. 01:27:23 Taro: But this destroys the character model and is incompatible with standard glyph substitution. I wish W3C would guide them away from that. 01:27:34 Florian: But it shows that people want a way to say "give me that glyph in that font". 01:28:17 jdaggett: But it sort of ignores the complexity. If you're displaying in Turkish you have to be very careful. OpenType handles this. While you could add this to SVG, it's duplicating features and work in OpenType. 01:28:27 Koji: I think ??? was saying ???. 01:28:56 was saying to fall back to a description of the character (if it cannot be displayed) 01:29:25 fantasai thought that's what ideographic description sequences were for. 01:29:27 Taro: I don't think Kobayashi's intention was wrong. We don't have a method to directly specify glyph in font, which is needed in font. 01:29:38 s/needed in font/needed by publishers/ 01:30:23 Taro: I'm not familiar with SVG ligature mechanism and CSS font ligature mechanism.... that kind of usage is wrong. But understanding necessity of directly accessing glyph. 01:31:12 SteveZ2 has joined #css 01:31:36 Koji shows example with character that can't be displayed and fallback to a textual description of the character 01:31:45 Steve: That's what markup jdaggett was suggesting would do. 01:32:09 fantasai: Isn't that what Ideographic Description Sequences are supposed to do? Why reinvent that? 01:32:26 Florian: Could add markup to fallback to description of character. 01:32:36 jdaggett: I don't know if IDS works... not supported in any browser. 01:33:08 fantasai: Information is there in IDS -- says "these two characters combine side by side", etc., which could be used to speak it out. 01:34:07 Florian: You want fallback that goes from these sequences to a Japanese description? Unicode IDS is intended for machine consumption; this fallback is intended for human consumption. 01:34:57 Nat: I don't think it's necessarily easy to translate from machine description to human description. This textual description says to take mori (three trees, 森) and replace tree with water. Which tree? 01:35:26 Nat: I'm still unclear how far IDC gets you -- I'd need to see it in practice to see if it's good enough. 01:36:21 fantasai: The sequence can let you look up a CID, not let you try to synthesize the glyph. 01:37:05 (fantasai draws on whiteboard) 01:37:18 http://www.shuiren.org/chuden/toyoshi/syoseki/chise_ids.html 01:37:52 Nat: Still doesn't say you want tiny tree on top rather than fat tree on top. 01:38:00 Florian: But that can be glyph variants. 01:38:49 Taro: I think IDS may be useful for rapid comparison of IDS sequence to see if there are any matching characters... maybe find more than one character or maybe just one. 01:39:07 Taro: Granularity of glyph selection is very fine, finer than expected for IDS. 01:40:12 Taro: ...., and when it fails parenthesized text could be presented to user. 01:40:42 Florian: Problem with using Unicode feature -- almost specifies the glyph but not quite, and likewise for markup seems almost good enough but not quite. 01:41:55 Steve: What I think I've heard so far is that markup for things that aren't encoded is the preferred solution, and attaching to that markup ways of accessing stuff in a font or an image to provide display seems to be the preferred solution. In principle you could attach one of these sequences as well, because once you have the markup you can attach almost anything to it. So that seemed to be a generic solution. 01:42:02 Steve: I'd suggest we end this topic with that. 01:42:08 Peter: 10-15 minute break. 01:43:39 arronei has joined #CSS 02:03:11 http://people.mozilla.org/~jdaggett/tests/cleartype-waterfall.html 02:03:25 Peter: Any other feedback from forums? 02:03:50 Bert: You mentioned aligning the glyphs on a line to a grid. We used to have a proposal for that in a module; don't have it anymore. 02:04:00 Bert: still needed? 02:04:04 Peter: next topic on the agenda 02:04:07 Topic: Line Grid 02:05:13 Nat: Feedback I heard in Tokyo and Kyoto had to do with the current unpredictability of the traditional Japanese typographi is embox based. Typography on the Web is not embox based. That difference perturbs a lot of people. People assume, when designing a Web page, that they can place text using embox placement, because that's how they design in other contexts. 02:06:07 Nat: Because of standards limitations, text is placed in a Western font metrics based way, based on Roman baseline. Attempts in newer standards to accomodate different baselines still doesn't get you all the way there. It allows you to align text with each other, and within the line, but the placement of text within the line -- my current understanding is that it's not possible to do embox based placement. 02:06:20 Nat: More related to the ??? parts of what you're drawing than the conventios of Japanese text measurement. 02:06:42 jdaggett: You said yesterday that when you talk about embox placement, you are primraily talking about the stacking of lines, and not so much about the intercharacter spacing. 02:06:51 Nat: Either the baseline shift or the stacking of lines. 02:07:04 jdaggett: So not about a horizontal grid; it's about having a constant multiple of lines. 02:07:06 Nat: yes. 02:07:35 Nat: I think we should go through in detail the line grid proposal. When I read through it I had several questions about what happens when the text doesn't match the grid, and what the automatic behaviors are supposed to be. 02:07:44 Nat: It didnot seem to me that the automatic behaviors will get users what they need. 02:07:56 Nat: I also think the line grid proposals may be trying to do many things at once that could be broken into separate buckets. 02:08:17 Nat: The main need doesn't require grid. You don't have to have a grid if you guarantee that the text line is going to be an embox tall and the glyphs within that line will be centered within that height. 02:08:28 Nat: You can hav uneven leading and different point sizes and still have embox based typography. 02:09:02 Nat: If you add a grid on top of that, you get several things: frame size will be multiple of embox size. You get gyodori (centering of title on multiple of embox size). 02:09:22 Nat: So however many lines the paragraph is, you round up to the number of grid units and center within that space. 02:09:32 jdaggett: So the lines that are in that paragraph don't individually line up. 02:09:42 Nat: Right, but the edges of it line up. 02:10:03 Nat: What you're missing from that is what the baseline grid gives you -- for Roman typography, you have columns side by side and you want the baselines to line up. 02:10:25 Nat: If you try to shoehorn all these user scenarios into a single feature you might miss things. 02:11:03 Nat: I'd like to take these apart and not say, heavy handed, you have to use line grid and say that with line grid you might get lines painting on top of each other (which we don't have in InDesign). 02:11:24 Steve: What Bert was referring to, I believe, was a proposal in css3-linebox (not line grid), which refers to line stacking. 02:11:39 Bert: Not what I was referring to, but wanted to discuss. 02:12:38 Steve: line-stacking had a number of options from XSL but added one called grid. Not entirely clear, but the option said that whenever you stack something... may have treated each line separately in a title paragraph rather than the whole thing, but would say you'd always get an integral number of grid units in a stack. That would keep the spacing regular without having to lay out a grid in any way. 02:13:10 Koji: Design grid was proposed by Microsoft... grid ... migrated into line stacking strategy. Some important features were lost dduring the migration. Would like to go back to original requirements. 02:13:34 -> http://dev.w3.org/csswg/css3-linebox/#LineStacking line stacking proposal in css3-linebox 02:13:41 jdaggett: A couple basic questions I have: This is a feature now in IE? What's different about your proposal from what's in IE? Have you gone through the linebox module? 02:13:50 Koji: I read the line-stacking-strategy part. 02:14:00 jdaggett: It seems like there's crossover in what these things are trying to solve; we need to have one spec. 02:14:13 jdaggett: You're basing it on IE-like features; are these features used? They've been in IE for a long time, no? 02:14:24 Koji: As I understand, IE has implemented since IE 5.5. 02:14:35 jdaggett: Are people using it, and if so, for what, and if not, why not? 02:14:53 Koji: People are not using it because it's IE-only. And people's understanding is that its's not standard. And it's in Word too. 02:15:14 Florian: Since IE 5.5, there was a period where it was like the only browser, so I don't think that's a sufficient explanation. 02:15:36 Koji: I'm not sure about this detail, but I think IE's implementation is different from implementation ... Murakami-san. 02:15:40 jdaggett: Need more detail on that. 02:16:02 Koji: Current implementation in IE doesn't match spec (2001 WD of text). 02:16:52 Murakami: I think the older draft had problem: the line grid model in the older draft was only in one block, not for the whole page. So the lines line up in only one paragraph, not across them. 02:17:04 jdaggett: IS that how it's implemented now? 02:17:13 Koji: Microsoft stopped improving the feature since it was dropped. 02:17:39 Alex: May be different in standards mode. We don't see it used, so we don't know what kind of support we need. 02:17:55 ?: Other East Asian languages, not just Japanese? 02:18:10 Nat: Affects languages with em-square typography, Chinese, Japanese, Korean. 02:18:30 Koji: Has line progression part and inline direction part; line progression part important for Roman too. 02:18:43 jdaggett: We also have the line spec. 02:19:20 Koji: line-stacking-strategy is controlled in each block, but there's a situation where you want to turn it off once and then turn it back, you need to know ... scope. 02:19:25 Nat: Sounds like we need to flesh out the requirements more. 02:20:03 jdaggett: That's my concern. We're not taking existing specs and saying we need to solve this set of problems. We're saying we need this set of features which happened to have been specced out at some point in time 02:20:23 Koji: For the review, I focused on background section (scenarios) and future section. 02:20:31 Koji: I want to agree on use cases and problems we want to solve 02:21:15 Nat: It's possible to be compliant with grid and still have problems with placement if you don't solve the line height problem. In Japanese traditional typography, the base font size is the only thing contributing to the line height. 02:21:44 Nat: The push and pull with whether you want it to be able to write over the next line or not, we decided not to have any automatic protection against overlap. 02:22:31 Nat: As someone who tries to develop a layout engine for this stuff, I want to have a predictable model: want UI for setting Y position to translate to embox based world. If we're worried about intrusions maybe it could be solved some other way. 02:22:51 Nat: On top of that, there's the grid. What points do you provide to snap it to? They're on the embox. 02:23:07 Steve: Another piece of the line stacking strategy was properties that turned on/off whether ruby contributed to the line height. 02:23:10 Nat: That seems like a hack. 02:23:42 Dbaron: Don't think there was a mistake in the history there; just a property. 02:23:52 szilles has joined #css 02:24:09 Steve: There were 4 line stacking strategies: with embox stacking you don't want it to contribute; with the current CSS model you probably do want it to contribute, which is why I think there's an option. 02:24:42 Zakim has left #css 02:25:00 Koji: I proposed line-stacking-ruby: auto, which is a combination. Most publishers don't care about overlapping because they fix before releasing. But with EPUB authors can't edit after ???. So ruby should not be included in line height unless it causes overlap. 02:25:13 Nat: So then what? You go down to zero, and that line will have different line spacing? 02:25:32 Koji: also important for mobile phones, where people care about fitting more information rather than getting regular line spacing. 02:26:40 Steve: I'm now confused: I understand line-stacking-strategy doesn't define a constant grid across the space. If I'm using classic CSS line stacking I want everything included and I won't get collisions based on the way it's defined. So that seems to me to deal with the ??? problem. If I want constant em-based typography, then I have the option of setting the lne-height so the line gap is sufficient for the kenten, ruby, underlines, so I don't get a collis 02:26:41 ion. 02:26:49 Steve: Depending on which strategy I either want them in or I don't want them. 02:27:48 Nat: That's what happens today. You can solve this by saying: yes, include everything that's drawing in the line-height. But then when you center on the embox, ... 02:30:24 Nat: If we include ruby, kenten, etc., and make a larger line height, we still have an ideal alignment point (the center of the embox). But we don't have that information. 02:32:29 Nat: Need that to get even line spacing. 02:33:07 Steve: Today, in CSS, you don't know where the baseline is. 02:33:11 dbaron: I don't think that's true. 02:33:58 Nat: line grid causes gyodori 02:34:39 Taro: The position of the first line must be specified by the user, and must not be changed by ... (differences between ascender and descender). 02:36:33 ... 02:36:53 dbaron: I don't see what in the existing CSS model breaks that, except stuff that's specific to ruby 02:37:09 Florian: when you have 2 lines, the second one will be placed so that the top of the second box is aligned with the bottom of the first box. 02:37:27 Florian: If what you care is not the placement of the box, but the content of the lines, you need the distance between baselines, or middle-lines 02:37:52 Florian: If the first line contains an image, the second one's nothing special, let's say the thir one has Ruby 02:37:58 Florian: These three lines will have different heights. 02:38:20 dbaron: Suppose the image is baseline-aligned so it sticks up, it makes the first line bigger, but doesn't change spacing between first and second line 02:38:30 Nat: image is red-herring, treated like a giant character 02:38:34 Nat: ruby and decorations are better 02:38:46 dbaron: decorations don't affect line spacing 02:38:48 Nat: Does in webkit 02:38:51 fantasai: that's a bug 02:39:00 dbaorn: Open question with ruby spec how if at all it should affect line spacing 02:39:07 s/Open/Let's say it's an open/ 02:39:25 Florian draws three lines of text as squares 02:39:38 bottom line has ruby above it 02:39:44 Florian: spacing is different 02:39:53 dbaron: if you assume ruby affects line spacing, which current drafts say it shouldn't 02:40:01 multiple ppl talking 02:40:16 Steve: The other problem is the leading goes above and below 02:40:38 Nat draws leading above and below the lines 02:40:59 Nat: If this guy's leading is different from this leading, it'll behave differently than convention 02:41:18 Nat: Convention is t measure leading from top of line to next line 02:41:24 Nat: This is understandable to designers in Japan 02:41:38 Nat: But 1/2 of first line leading and 1/2 of second line leading is confusing 02:42:11 Nat: It's much easier to place body text when you're only dealing with one number 02:42:25 Nat: whether you measure from top of line to top of next line, or middle of line to middle of next line 02:42:34 Nat: the combination of half-leading is confusing 02:43:40 Steve: tate-chu-yoko is always measuring as 1em, not measuring more than that even if it overflows 1em 02:44:09 Nat: Often it'll stick out visually. Doesn't mean it needs to make the line taller 02:44:34 Nat: For tcy, you need to make the cap-height 1em 02:44:47 Nat: Otherwise it doesn't look good 02:45:14 Koji: I think the problem you're discussing is a problem we're trying to solve without changing the CSS model. You are trying to change the model, it seems. 02:45:21 Nat: No, just trying to describe the required behavior 02:45:45 dbaron: You talk about authors thinking or not thinking in 1/2 leading model 02:45:59 dbaron: I don't think authors understand the CSS model, be they Japanese or Western 02:46:08 dbaron: Maybe we need a way for them to opt into another model. 02:46:50 Nat: ... embox top. If they wnat to do this, there are different point sizes here, so you get a+1/2b 02:47:08 Nat: It's much easier to present info in embox terms, and have engine be able to spit out CSS that may be hand-tuned .. 02:47:28 Nat: CSS is a half-human-readable API. If you can express things in CSS using embox top leading model, it's so much easier. 02:47:36 dbaron: There's sort of two problems with that sort of leading model, I think 02:47:43 dbaron: related to what happens around the edges of boxes 02:47:51 dbaron: If you have multiple lines of text in a box, there are 2 cases you need to worry about. 02:48:07 dbaron: One is the box has some visual appearance,e.g. border or background, and you see the edges of the box 02:48:17 dbaron: So you need to think about the spacing between the text and the top of the box. 02:48:42 dbaron: Then there's the opposite case: you have a box that's interior to some visual effect, and you want consistent line-spacing between that and the preceding content 02:49:04 dbaron: I'd be very uncomfortable with something that doesn't work right by default for the simple cases of both of those. 02:49:07 dbaron++ :) 02:49:21 Steve: Getting consistent line spacing seems to be easier to do with a model that involves snapping than stacking 02:49:43 Steve: Trying to get the stacking to work and have consistent spacing gets into issues that I don't think we're solving. 02:49:49 Nat: Please explain? 02:49:57 dbaron: If you have box-with-visual-appearance 02:50:12 dbaron: If you're talking about leading as something that goes below a line, you get problem with large line-spacing 02:50:27 dbaron: where text jams right up against the top border, and then a big gap at the bottom 02:50:37 Nat: You don't add the leading at the bottom of the box. 02:50:46 dbaron: That works well for the case where the box does have a visual appearance. 02:50:57 dbaron: but then that fails for the case where the box doesn't ahve a visual appearance. 02:51:15 dbaron: One thing we try to preserve in CSS is that if you have a box, and you stick a
in there where there are already line breaks, the rendering doesn't change. 02:51:27 dbaron: A
, by default, should be invisible. 02:51:50 dbaron: If you cancel at both edges, then you lose the spacing between the lines inside and outside the div 02:51:54 or before/after the div 02:52:06 dbaron: Whatever model we come up with, I think we're sort of stuck with that concept. 02:52:15 dbaron: We're not distinguishng between two categories of boxes 02:52:49 dbaron: The normal case I'm worried about is e.g. article in newspaper. You have paragraphs of text. 02:53:08 dbaron: You don't want a model where space between paragraphs is different from space between lines within paragraphs. 02:53:14 Nat: Now I understand why you do half on either side. 02:53:26 Nat: ... 02:53:30 Steve: You can set line-height on spans 02:53:58 ... 02:54:09 Nat: when you're flowing text between two frames 02:54:11 dbaron: frame? 02:54:30 dbaron: I could try to explain existing CSS model over lunch? 02:54:37
03:40:05 szilles has joined #css 04:01:08 ScribeNick: TabAtkins 04:01:46 Nat: A bit of closure on the previous discussion. 04:02:07 Nat: [something about leading?] 04:02:10 florian has joined #css 04:02:36 Nat: If there's no other available thing, then maybe it's true that we're stuck with half-leading model. 04:03:06 Nat: Based on the history, I think it may be possible to keep most of the current workings if we provide a way for the UA & author to understand where to place the em box. 04:03:18 Nat: That is, where does the metric belong in the convoluted package of the line box. 04:03:40 Nat: What's the offset from the line-top to the top of the em box, or whatever, and where is the offset measured from? 04:04:03 Nat: In InDesign, we can control this. The 0 point by default is the roman baseline, but you can change this. 04:04:45 Nat: You can specify whether it's most important to match the "baseline" of the em box to the baseline of the linebox, or the center, etc. 04:05:12 Nat: So once I can place my nice Japanese world on top of the linebox accurately, then it doesn't matter very much that the rest of the inline layou tmodel exists. 04:07:20 fantasai presents a new proposal 04:07:29 fantasai: We have a new property, 'line-grid', which takes an ident. 04:07:33 fantasai: Initial value is 'root'. 04:07:42 fantasai: It inherits. 04:08:13 fantasai: If you set it on an element, and no ancestor has the same value, it creates a line-grid out of the line-height and font-size settings. 04:08:26 fantasai: The line-grid consists of all of the baselines. 04:10:26 fantasai: If I'm inside a paragraph and I say I want "line-grid:root", I'll get the root's grid, regardless of what other grids have been set up between the paragraph and the root. 04:10:58 fantasai: A fresh grid starts at the content-box of the creating element. 04:11:10 dbaron: You probably want an option to say "don't put half the line-gap at the top and bottom". 04:11:15 fantasai: Yes. 04:11:42 fantasai: The idea is just to match what the text would look like if all the font was the same size/face/etc. 04:11:52 Kazutaka has joined #CSS 04:11:56 Nat: I propose an offset from the top. 04:12:19 [discussion saying we should wait to see how the grid actually works] 04:12:39 dbaron: What's the use-case for a named line-grid, instead of just using the line-grid from an ancestor? 04:13:31 vhardy: You may want two floats that both use the same grid. 04:14:06 dbaron: What about having an outer grid, an element with sets up a new grid, then a child that wants to use the outer grid again? 04:14:20 hober: Perhaps the middle content is sufficiently weird... 04:14:31 dbaron: Would that just be making the middle content not snap? 04:15:45 [dbaron isn't convinced there's an example where named grids are necessary] 04:15:54 [and we're continuing to listen to the rest of Elika's presentation] 04:17:23 fantasai: Next property is "line-grid: ". 04:17:37 "line-grid: | bounds" 04:18:01 fantasai: It says "all the lineboxes that I'm a container for, shift them down until they snap to my grid." 04:18:15 fantasai: (until it's baseline snaps to the next baseline in the grid) 04:18:53 fantasai: The "bounds" value takes the text-top and text-bottom (em box top and bottom)... 04:19:24 fantasai: And, if it fits between the text-top/text-bottom lines in the grid, centers them in there. If it's wider, it finds the next text-bottom that it can fit between, and then centers. 04:20:02 fantasai: In other words, it finds the next text-top, and then the nearest text-bottom that it'll fit into, and centers the linebox between those two lines. 04:20:25 fantasai: And the property is inherited. Also, "line-grid: | bounds | none;". Initial is 'none'. 04:20:50 fantasai: There's a root linegrid by default, so you can use line-snap before setting up a line-grid. 04:21:03 [previous references to line-grid over the past several minutes are meant to be "line-snap"] 04:21:33 [Nat gives some example that I can't work out] 04:21:37 Note that around where fantasai said "The idea is just to match what the text would look like if all the font was the same size/face/etc." she also said we could add an option to control that for the text case, which would then also affect the grid establishment. 04:22:31 fantasai: We have a 'padding' property on boxes to shift their content down... 04:23:35 hober: [translation] When you've got the container that establishes your line-grid... 04:23:46 hober: The grid starts at the top of the content-box. 04:24:04 hober: If you have a region that happens to only partly overlap the element that establishes the line-grid... 04:24:23 hober: The text will then start at a weird spot in the region, because the grid doesn't start high enough. 04:24:54 fantasai: The grid extends infinitely in both directions. 04:27:10 Nat: So, frex, if you have some large header, you want to start the grid at the bottom of the header. 04:27:25 dbaron: You can just set the linegrid on a container for the body content. You don't have set it on the root. 04:27:46 Nat: [something about InDesign possibly having issues with exporting into HTML with that] 04:28:38 plinss: With all due respect, we're not implementing InDesign. We just want to hit the use-cases that are necessary for publishing. Difficulties for existing programs to map into aren't as big a deal. 04:28:56 fantasai: Also, for t/r/b/l, a snap() function. 04:29:42 dbaron: I was hoping to have a third property like "box-snap:bounds", which would center boxes within the necessary number of grid units. 04:30:04 Steve: What we're trying to do with this is gyodori for paragraphs. 04:31:09 fantasai: If you snap both your top and bottom, you have to figure out which box to align. 04:31:38 fantasai: I think if you're positioning a box, you'd snap top to the text-top and bottom to the text-bottom. 04:32:05 (Though the box-snap might *require* that we drop the named grids and just go to a mechanism for establishing a new line grid.) 04:32:30 arron has joined #css 04:32:34 florian: In a kanji situation, it's common to snap images to the kanji-top. 04:32:57 fantasai: So, that's the overview. The box-snapping part needs work, but I think the rest is what we want. 04:33:14 kojiishi: My proposal is very similar in regards to defining grids. 04:33:44 kojiishi: When I aksed for review in Japan, descendants could be difficult if the descendant establishes a BFC. 04:33:58 dbaron: Using it within a float doesn't sound that bad; using it within something that's scrollable dos. 04:34:02 s/dos/does/ 04:34:35 plinss: You'd just scroll the grid. 04:34:45 dbaron: Okay, I guess it doesn't break the model. Floats kinda do. 04:35:09 s/Floats kinda do./With floats, overflow:scroll did./ 04:35:11 jdaggett: What happens with varying font-sizes? 04:35:45 jdaggett: Do you reach a point where you suddenly get larger gaps? 04:36:08 fantasai: Potentially, but you can use line-stacking-strategy to exclude parts, so things can still collide. 04:36:30 dbaron: So you generally would want to use a fairly restrict line-stacking-strategy, so you don't jump line-grids very often. 04:36:42 s/line-stacking-strategy/line-stacking-strategy or line-box-contain or whatever we end up with/ 04:37:26 Peter: You could potentially add a value for tolerance (to allow a small amount of overlap). 04:37:41 Nat: What about paragraph-level gyodori? 04:38:00 szilles: The t/r/b/l stuff was for that. Dbaron and I think there may be a simpler answer for that. 04:38:15 szilles: Involving "box-snap:bounds". 04:40:00 vhardy: You may want to define multiple line-grids from the same element (at different sizes, frex). 04:40:13 fantasai: We can add multiple grids later if necessary. 04:40:46 dbaron: Yet another usecase for ::outside/inside! 04:41:24 alexmog: [channeling glazman] I'd hate to write an editor that exposes multiple grids defined on the same element. 04:41:54 (we could minute it as :glazou, for pseudo-glazou :-) 04:42:14 shouldn't it be ::glazou? 04:42:55 alexmog: Ruby doesn't affect line-stacking, right? 04:43:10 fantasai: If it affects line/block height, yes. Otherwise, no. By default, no. 04:43:48 arron has joined #css 04:43:53 szilles: As an example, say you have a headline with some ruby on the top. What would an editor want for this? 04:44:21 Nat: You'd ignore the ruby and center based on the heading. But you'd also include some padding to make sure there's enough space for the ruby. 04:46:03 [more discussion about ruby, and why you wouldn't include it in the line height] 04:47:57 kojiishi: Another request in this area, for a character-based grid. 04:49:17 kojiishi: So, for example, if you have a float in the middle of some em-based script, the shortened lines by default would probably start off-alignment with the rest of the text. 04:49:40 kojiishi: In Chinese, each character is snapped to the grid, whereas in Japanese only the start and end of the line box need to be snapped. 04:49:53 kojiishi: This property would set up a grid in the orthogonal direction to the line-grid, so the linebox snaps to the nearest grid. 04:49:56 hober: You'd want the same thing for monospaced western fonts. 04:50:03 Steve: though that's not 1em wide... 04:50:43 Nat: I'm still distrubed by line-stacking, with 20pt text with 120% leading mixed with 24pt text with 120% leading, it's very difficult to get it to work like the japanese designer would want. 04:50:59 Nat: They'd want the line-spacing to be based on one of those values. 04:51:24 Nat: [1em text, 1em spacing, 1em big text, 1em big spacing, etc.] 04:51:32 spacing -> 0.5em 04:52:39 Nat: I'm satisfied if we just log a note about how this half-leading works with grids. 04:53:17 fantasai: If you're snapping things to the line-grid, you may want to snap things to the layout-grid as well. 04:53:33 fantasai: Have the images align with the layout-grid, for example. 04:54:26 My issue is that the space between lines is dependent on the leading value on _both_ lines, making it difficult for the author to get the look they want. 04:55:27 If you add the ability to calculate line gap based on one or the other line's leading (and leading origin and direction, etc), then it makes it more predictable for Japanese authors, I think. 04:55:37 szilles: Why are we using grid here? I'm asking this because we have two orthogonal concepts. 04:56:07 szilles: A regular set of horizontal lines (or vertical), and a regular set of character positions. Together they make a grid, but independently they're not. 04:56:33 fantasai: Do you have a suggestion? 04:56:40 plinss: We can have a note about that. 04:57:07 alexmog: So we have a new line-grid spec from Koji. Is this the base fro which we further develop, or do we have competing proposals? 04:57:33 jdaggett: I think there's overlapping functionality with Linebox, but not competing. But I don't think these should be two specs. 04:58:46 szilles has joined #css 04:59:45 [discussion about how to organize the specs] 05:00:00 alexmog: Can we have a resolution about how we expect the specs to merge/alter? 05:02:16 Topic: text-orientation 05:03:03 RESOLVED: Eventually we'll have one Line spec, which includes current Linebox and Linegrid. 05:04:45 jdaggett: In section 5, there's a lot of weird lingo, like "bi-orientational transform". 05:04:50 jdaggett: Can we use simpler terms here? 05:06:04 jdaggett: [something I couldn't quite parse about the spec not matching what authors think of] 05:07:20 jdaggett: Another issue - not sure if stuff like the "intrinsic text orientation" is the right set of controls to use. 05:07:44 jdaggett: Once you're in vertical-lr/rl, there's a natural orientation that horizontal text can have. 05:07:52 fantasai: There's some behavior implied by the orientation, and some that's not. 05:08:11 fantasai: If you're using right-to-left columns up text, you'll either rotate [this way], or stack the text. 05:08:26 fantasai: And that's not intrinsic to the orientation of the script. 05:09:57 fantasai: [draws diagram of how Mongolian would orient horizontal text. 05:13:49 stearns has joined #css 05:14:11 jdaggett: It seems like the behavior we want, rotate-normal... 05:14:24 fantasai: We want rotate-normal if we're a horizontal scripts. We want vertical-right for vertical scripts. 05:14:42 jdaggett: The behavior of rotate-normal changes based on the writing mode. 05:14:48 vertical-lr scripts: http://en.wikipedia.org/wiki/Mongolian_script http://en.wikipedia.org/wiki/Manchu_script http://en.wikipedia.org/wiki/Old_Uyghur_alphabet 05:14:55 jdaggett: So why not have the 'auto' setting work most of the time. 05:15:07 jdaggett: There's an exception, but the normal case for most scripts is to rotate it to the right. 05:15:17 fantasai: rotate-normal will rotate Chinese script sideways. 05:15:40 also http://en.wikipedia.org/wiki/Clear_script 05:15:56 szilles has joined #css 05:16:15 jdaggett: The default we want is called "auto" that does the right thing... 05:16:31 fantasai: You can't do the right thing in all cases without defining the equivalent of rotate-left. 05:17:15 fantasai: I can't mix rotated English and Chinese without specifying these. 05:17:40 Nat: The vertical orientation specifies that English must rotate clockwise. So that should be the default. 05:18:05 fantasai: Which is what you get with vertical-right (keeps the chinese vertical) or rotate-right (rotates the Chinese too). 05:19:19 [something about mixing rtl and chinese/japanese] 05:20:25 [and some explanation of why all the values are necessary] 05:20:51 alexmog: It seems that the only two values that ever happen are that character are oriented with the baseline, or they are vertical. 05:21:54 fantasai: [shows example of English letters being stacked, or rotated with baseline on right or left] 05:22:30 dbaron: You're either leaving them in their normal orientation, or turning them so their inline progression matches the inline progression you're using, or the same with block progression. 05:23:42 fantasai: We could simplify more if we're willing to screw with the bidi algorithm. I was trying to leave bidi alone. 05:24:42 jdaggett: I think we should just change "vertical-right" to "auto". 05:24:59 szilles: That doesn't match with SVG. 05:25:10 myakura has joined #css 05:25:11 jdaggett: SVG can mess around with that themselves. It's deprecated! 05:25:46 fantasai: it's not deprecated in SVG. We're deprecating their definition with our new one, is all. 05:27:45 jdaggett: Everything but vertical-right is exceptions to the general behavior, which we should call "auto". 05:27:55 fantasai: So, first issue is you want to rename "vertical-right" to "auto". 05:28:47 fantasai: But the reasonable default behavior changes based on the context. 05:29:00 You want "vertical-right" or "rotate-normal" based on Chinese vs English, frex. 05:29:14 fantasai: The normal thing in Mongolian and Chinese is to use 'vertical-right', the normal case in English, French, Arabic documents is to use 'rotate-normal' 05:35:09 fantasai: Next jdagget proposal is to drop the SVG-specific values. 05:35:10 dbaron: Are there any cases where there's embedded text rotated such that both its inline progression does not match the inline progression of the dominant script, and such that its block progression does not match the block progression of the dominant script? 05:39:37 [...] 05:39:49 Nat: Not all layout engines have the same idea of what is the default behavior. 05:40:50 Nat: That freedom should maybe be allowed. 05:41:29 fantasai: The requirements for vertical-right are that (1) vertical scripts *must* be in their default orientation, and (2) horizontal scripts *must* be [rotated to the right? I didn't hear well] 05:44:36 boblet has joined #css 05:45:17 I think another way to look at this is that the use case for 'vertical-right' is honor-block-direction, the use case for 'upright' is honor-natural-horientation, the Mongolian example with the English the other way around is 'honor-inline-direction', and the 'rotate-right' and 'rotate-left' cases are layout-affecting transforms rather than vertical text 05:49:13 [whole lots of discussion I have no idea about] 05:49:19 fantasai: I can rename 'upright' to 'stacked' 05:51:47 dbaron: Maybe this is crazy, but I have an alternate model in my head where the existing examples for rotate-right/left are layout-affecting transforms. 05:52:14 dbaron: But then you tsill need vertical-left/right and an escape hatch, where instead of vertical-right (honoring the block-progression direction), you honor the inline-progression direction. 05:54:09 dbaron: This alternative doesn't give you [something], but that's it. 05:54:36 ???: When japanese characters are upright and arabic is used, naturally, only looking at those characters, it looks natural for the arabic characters to start at the top and proceed to the bottom. 05:55:17 ???: But when roman characters exist as well, their top is on the right, but then the arabic characters are on the left side. 05:55:39 ???: To resolve this contradiction, publishers will set arabic from bottom-to-top, and keep the roman on top-to-bottom. 05:55:52 ??? = Taro 05:58:18 szilles: When I rotate english to the left, it seems I'm in a bottom-to-top mode. 05:58:20 fantasai: Yes. 05:58:42 szilles: So then, is the 'auto' value for bottom-to-top to rotate everything left? Because there are effectively no bottom-to-top languages. 05:59:07 fantasai: Yes, which is why those btt languages will actually go ttb unless you set rotate-left. 05:59:19 fantasai: Any other issues that need to be discussed? 05:59:34 szilles: Yesterday in the forum, in the shift to upright, numbers went to traditional c/j encoding. 06:00:02 fantasai: It's not just a codepoint swap, they actually transformed [???] 06:00:08 jdaggett: It's numerical transforms. 06:00:36 135 -> 百三十五 06:01:05 (not 135 -> 一三五!) 06:01:35 fantasai: escape hatch: 135 and abbr { content: attr(title); } 06:01:38 fantasai: Escape hatch for now is just hiding the alternate form in an attribute and pulling it in via "content: attr()". 06:02:23 (And if I want to translate it to Chinese *and* convert to the Julian calendar? :-) ) 06:02:36 Daniel Davis: Could rotate-right/left be baseline-right/left? 06:02:46 fantasai: which baseline? 06:07:43 boblet1 has joined #css 06:21:16 suggestion was sideways-left, sideways-right, and sideways (rotate-normal) 06:26:04 dbaron: If we ever add bottom-to-top, vertical-right is not going to be what we want for those. 06:30:22 fantasai: The info we're missing to make this all super-intelligent is... We have ltr and rtl which gives us bidi for horizontal. If we had similar for vertical, we could do a lot more here. 06:30:38 Like, ttb-rtl would let us know that it's rtl in horizontal and ttb in vertical. 06:31:30 Straw Poll: The default value for text-orientation 06:31:41 Should it be named 'auto' or 'vertical-right' 06:31:59 danield: Abstain 06:32:02 jdaggett: auto 06:32:08 sylvaing: auto 06:32:15 dbaron: vertical-right 06:32:20 kojiishi: vertical-right 06:32:25 florian: vertical-right 06:32:27 szilles: auto 06:32:31 alexmog: auto 06:32:36 vhardy: auto 06:32:39 Bert: abstain 06:32:41 (vertical-right because I think there's actually relatively little logic to it, because the normal behavior of Mongolian is weird) 06:32:45 Taro: auto 06:32:48 Nat: auto 06:32:57 TabAtkins: abstain 06:33:01 hober: vertical-right 06:33:06 plinss: vertical-right 06:33:15 murakami: vertical-right 06:33:18 fantasai: vertical-right 06:33:43 7 'auto', 7 'vertical-right', 3 'abstain' 06:34:20 plinss: 'auto' implies it will change behavior based on something else. 06:34:40 dbaron: I went for 'vertical-right' because it seems that it's relying on the fact that "normal" use in mongolian is what I would personally consider really weird. 06:35:01 dbaron: And it just so happens that it all works out, because the normal behavior for Mongolian and Chinese turn the same way. 06:36:39 Steve: But Mongolian written horizontally actually runs left-to-right (due to Russian influence). 06:36:40 florian: I don't like 'auto' because if you're not aware of natively vertical scripts and you just want to turn some English to the side, you expect 'auto' to not turn it to the side. 06:36:41 dbaron: oh 06:38:02 Ms2ger has joined #css 06:38:23 szilles: I'll point out that if you have vertical tabs on multiple pages, the ones on opposite pages go in opposite directions. 06:38:46 fantasai: The next issue is the SVG property. 06:38:46 good point about English in vertical "auto" is biased toward Japanese default behavior, not some other convention 06:39:18 fantasai: SVG basically said that they'll do what we decide on. 06:39:33 szilles: Can we just call the value "svg-historic"? 06:39:43 jdaggett: Anything except "auto". 06:39:46 fantasai: agreed 06:39:56 fantasai: I can change it to "svg-historic" or "use-glyph-orientation" or something. 06:41:22 plinss: Maybe mark the value as at-risk. 06:42:10 RESOLVED: Renamed the 'auto' value for text-orientation, and mark the value as at-risk. 06:42:29 jdaggett: I'm confused about how vertical-align works for vertical text. 06:42:38 [something about multiple baselines] 06:43:23 fantasai: [points to the definition in the "introduction to baselines" chapter] 06:43:44 Nat: Incidentally, baselines are wrong for ideographic. 06:44:01 jdaggett: This example and text and such shouldn't be in this spec, though. It should be in the Linebox module. 06:44:22 jdaggett: I'm concerned that if we put non-normative text here, we'll imply behavior to impls that may conflict with the later normative text in Linebox. 06:44:47 fantasai: I need at least two baselines defined. 06:45:06 jdaggett: Right. We just don't need quite this much detail. There's also stuff about metrics, which is completely unnecessary. 06:45:16 szilles: I can fix the diagram to just provide the necessary info. 06:45:51 jdaggett: And then when we talk about metrics, this is completely not what browsers actually do. 06:46:01 szilles: We agreed on this text some time ago in the WG. It's in the 2.1 spec. 06:46:03 fantasai: Most of it. 06:46:10 jdaggett: Darn, then we have a larger issue. 06:46:50 szilles: It was put there to provide a reasonable set of fallbacks for dealing with what happens with real-world fonts. 06:46:58 jdaggett: And real-world fonts in Windows use the windows metrics. 06:47:04 szilles: They have nothing to do with the em box. 06:47:30 jdaggett: A browser written on windows that's not written by adobe will use the metrics provided by the OS, which will generally be the windows metrics. 06:47:54 jdaggett: I'm not objecting that this is wrong behavior, it's just not what impls do. 06:51:29 alexmog has joined #css 06:52:43 RESOLVED: Remove 4.2.1 from the Writing Modes spec. 06:55:27 fantasai: [explains how the spec deals with alphabetic/central baselines] 06:56:08 fantasai: There's sometimes a conflict between the parent and child in what baseline is dominant, but the spec defines that logic. 06:56:57 jdaggett: So the behavior for 'sub' and 'super' in vertical is to shift left/right? 06:57:00 fantasai: Yes. 06:57:12 jdaggett: And what about when tatechuyoko(sp?) is used? 06:57:28 fantasai: That's defined to basically synthesize a new glyphs which then has a singular baseline. 06:57:50 howcome has joined #css 06:58:09 szilles: So you're asking about what happens if there is vertical-align'd text in tatechuyoko? 06:58:29 fantasai: Right now it's defined to *not* trigger tatechuyoko if there is any further structure. 06:59:49 It should be possible to set text inside the TCY using baselines (horizontal ones) for superscript or subscript 07:00:02 The whole thing would be centered in the vertical line 07:00:19 szilles: [some point about horizontal text in horizontal japanese?] 07:02:16 jdaggett: "The default alignment is 'baseline', and that uses the dominant baseline, which changes based on the script." 07:02:35 s/script/writing mode/ 07:03:51 http://people.mozilla.org/~jdaggett/images/tatechuyoko-percent.png 07:07:13 [looking at the email] 07:07:26 jdaggett: This was original meant for kumimoji, actually. 07:10:14 I also proposed "text-inline-horizontal: none | half | third | quarter". 07:10:22 [last was from jdaggett] 07:10:46 Taro: When two characters are combined, it's possible the editor wants to condense them to get them into 1em width. 07:10:58 Taro: That typically applies to 2-digit numbers without a decimal point. 07:11:08 Taro: The case with a decimal point is kind of an exception. 07:11:37 Nat: We have half and quarter-width characters, but I think that's mostly a throwback to when they weren't really scalable. 07:13:12 [jdaggett shows example from the spec about tatechuyoko] 07:13:20 jdaggett: You see the year and day are using tatechuyoko. 07:13:54 jdaggett: The way it's currently defined, you have to wrap each number in spans. Ideally, you could just say "use tatechuyoko when necessary/possible" 07:14:58 kojiishi: I think that 'automatic' is nice, but if we were only doing one or the other, we should do the explicit one first. 07:16:28 [jdagget shows another example from the email] 07:16:52 jdaggett: Here you have an example of where you want to do tatechuyoko on "up to 2" things. 07:17:14 The first date, with two digits, would use tatechuyoko. 07:17:32 The second date, with a 4-digit eyar, would stack the digits of the year, but use tatechuyoko for the month/day, as they are still two digits. 07:18:43 jdaggett: Also, how does this combine with text-transform? 07:18:53 fantasai: Maybe text-transform would turn off automatically. 07:19:16 fantasai: If the number is too wide, use text-transform, otherwise use tatechuyoko. 07:20:16 jdaggett: I also think it should say that under no circumstances should it change the linebox. 07:20:52 ISSUE - define interaction with text-transform: fullwidht 07:21:05 ISSUE - make spec clear that the tcy is only 1em high 07:21:15 even if the glyphs bleed outside that 1em 07:24:03 fantasai: There's a comment in the spec about automatic tcy saying we could maybe have a value like "digits" and a maximum number of digits to combine. 07:24:27 jdaggett: In the single-digit case you may want to use wider characters, sometimes. 07:24:31 e.g. text-combine-auto: digits 3; 07:25:17 fantasai: We should be able to solve that by setting text-transform:fullwidth and turning it off when tcy applies. 07:26:24 fantasai: We do want a way to force tcy sometimes, too. 07:26:31 fantasai: If we want to deal with automatic stuff here, we can. 07:27:09 Nat: I think you'll definitely get requests for it. It'll be cumbersome for authors, and tcy, in the 80% case, is just two digits, and you'll want to auto-tcy *all* 2-digit numbers everywhere. 07:27:24 Nat: As long as you keep the edge cases in mind while designing the automatic thing, it'll work. 07:29:15 Nat: [discussion about processing, using "anything that fits into X" versus "all 2/3 digit numbers"] 07:29:36 Nat: [prefers the latter, as it doesn't require you to call down into the font renderer before deciding whether to use tcy] 07:30:13 jdaggett: I mainly just wanted dates to work, so you only needed one span to wrap a date with. 07:30:53 szilles: Automatic is good, but also I want to use tcy on arbitrary characters, so we want manual forcing as well. 07:31:25 Nat: jdaggett's proposal doesn't get "2010" to be quarter-width and "4" being full-width, though. 07:31:31 jdaggett: You can do manual overrides. 07:37:26 Nat: We find that anytime we do automatic, we get people angry because they're doing something weird. 07:37:46 szilles: That should be okay as long as there's an ability to override manually. 07:38:22 Nat: Maybe we can combine these - use tcy for 2/3/4 digits, fullwidth for 1 digit, and let the author use whatever unicode digits they want. 07:38:56 Nat: If we can come up with a property for that and use it in tcy as well, that would be nice. 07:39:33 fantasai: What about "text-combine-horizontal: all | digits ? || alpha ?". 07:39:38 dbaron has joined #css 07:39:39 "all" is entire contents, no smushing. 07:45:09 fantasai: "... && [half | third | quarter]" 07:46:31 Nat: For smushing, have the value somehow apply that it's about fitting, whether by using specified special glyphs or by scaling the glyphs directly. 07:47:17 fantasai: or "... && fit" 07:47:35 fantasai: So you can specify "all", which just puts it all in tcy without smushing. 07:47:53 fantasai: Or "alpha " or "digits 07:48:00 s/// 07:48:56 fantasai: Which swaps alphas/digits for the appropriate-width characters and does tcy. 07:50:46 (1,000 is different from 1, 000) 07:51:00 "all | [ digits || alpha || alphanumeric ]" 07:53:49 "none | all | [ digits || alpha || alphanumeric ] && [ fit | scale ]" 07:54:46 "fit" means try to use the half/third/quarter-width glyphs first, otherwise fall back to scaling. 07:54:58 "none | all | [ digits || alpha || alphanumeric ] && [ use-glyphs | scale ]" 07:59:32 Nat: My ideal is that by default, you don't do glyph substitution or scaling, and you have to specify to use glyphs or scaling. 08:00:46 plinss: We have enough progress here now. Take the rest for later. 08:00:58 jdaggett: Next issue is that we don't have any talk about form elements. 08:01:28 jdaggett: It's right that CSS doesn't apply to form controls internals, by definition, but still, the layout of a form control has a huge impact on the layout of other things. 08:02:09 fantasai: I'm willing to put in examples of how form controls *should* work in vertical text, so impls can do it right. I'm not willing to do normative text yet, though, because I'm not willing to define how form controls internals are exposed. 08:02:21 jdaggett: I just want to say "form controls follow the text direction", etc. 08:02:31 fantasai: It says that right now. 08:04:02 ISSUE - put in some examples, maybe using IE9 screenshots 08:04:03 :) 08:04:31 Hah 08:04:32 jdaggett: Next issue. Minor point, but I don't like that "writing-mode" is labelled the block direction. 08:04:47 jdaggett: It's influencing the direction in which text flows. 08:05:42 Bert: "block flow direction" is a technical term that means quite a lot. 08:05:50 szilles has joined #css 08:05:56 Bert: It implies a bunch of typographic rules, including what's upright and what's rotated. 08:06:23 fantasai: That's writing-mode. The block flow direction basically determines the direction in which block boxes and lineboxes stack, and whether the linebox is horizontal or verticla. 08:08:36 szilles: The title of the section could just be simplified to "The 'writing-mode' Property", to avoid the confusion. 08:09:35 fantasai: The "writing mode" means 3 things (3 properties). The 'writing-mode' property is one aspect. 08:09:53 fantasai: If it was up to me I'd call it 'block-flow-direction', but I think it's too late now. 08:09:59 sylvaing: Why is it too late? 08:10:44 fantasai: maybe I can change it 08:10:59 fantasai: Last issue is text-orientation and punctuation. 08:12:46 jdaggett: I was suggesting as a loose default that you should specify all the scripts that are upright, and everything else is rotated. 08:12:58 jdaggett: For the common/inherited characters, use whatever the previous script block was. 08:13:20 Nat: The problem we ran into is that for the ambiguous chars (U+2000), depending on the font the glyph design was different. 08:13:46 Nat: Our method was that if it was in Shift-JIS and fullwidth, it was upright. Otherwise, rotated. 08:14:51 Nat: [some things are crazy] 08:14:59 jdaggett: Short version - "we're screwed". 08:15:28 fantasai: There's a bunch of characters we can definitely tell for. We say that the ambiguous characters may be UA dependent, and point to two features that can be used for detection. 08:18:12 Nat: Originally a bunch of chinese characters were in PUA, and outside our lists, so we rotated them. We switched to looking at the font to see if it's a vertical script font, and treating the PUA as upright then. 08:20:09 [chatter about fonts and such] 08:24:18 ISSUE - add reference to Unicode database 08:25:11 dbaron: Refer to a particular version of Unicode 08:26:40 r12a has joined #css 08:34:58 [unminuted discussion of font features] 08:35:07 e.g. vrt2 08:35:49 Nat: I don't think it's useful to say to the UA to determine which ones are upright and which ones are not, because at the point htat the engines are unfamiliar with , we don't have access to the glyph ids 08:36:05 Nat: I'm not sure why that's common to the ones I know, but seems to me that it's difficult ... 08:37:15 Nat explains that most engines he knows split the runs into roman (sideways) and non-roman (upright), and default mode is sideways, and vrt2 requires not splitting runs and making everything upright because it has prerotated glyphs 08:37:23 -> http://www.microsoft.com/typography/otspec/recom.htm Adobe Type Manager/NT 4.1 and Windows 2000 require the vrt2 feature in an OT font to do vertical writing. 08:37:27 -> http://www.microsoft.com/typography/otspec/features_uz.htm#vrt2 Description of the vrt2 feature in OT 08:37:37 jdaggett: I think we have to do an implementation and see if using vrt2 actually work 08:38:46 jdaggett: puzzled why Unicode didn't deal with this stuff 08:39:13 fantasai: partly 'cuz they consider vertical layout out-of-scope 08:39:29 fantasai: and partly because the correct orientation depends on the font and how that glyph was designed 08:40:17 Nat: Unicode unified various characters, so ... it's a difficult problem. 08:40:43 Nat: It would be nice if, Unicode is a good authority .. if they had to go through the exercise of making this table of which ones are upright and which are not, they might realize that maybe they should have separate codepoints. 08:41:57 topic: unicode-bidi 08:42:06 dbaron: So you've revised the values of unicode-bidi 08:42:12 dbaron: I looked it over, and I think it makes sense. 08:42:22 dbaron: I think the revision now allows the combinations that make sense and not some other combinations 08:42:26 dbaron: But I guess.. 08:43:09 dbaron: I'm still a little fuzzy on the 'plaintext' thing and why it converts to 'isolate' , given you can use the combination of plaintext and isolate 08:43:59 fantasai: oh, hm, I'm not sure why I did that 08:45:55 fantasai: we should have plaintext imply isolate, and then if you set it on an inline element it sets its embedding direction like it would have set its base direction if it were a block 08:46:04 fantasai: so allowing combination of plaintext and isolate does not make sense 08:46:23 ACTION: fantasai edit the spec per above and check with smontagu 08:46:23 Created ACTION-321 - Edit the spec per above and check with smontagu [on Elika Etemad - due 2011-06-09]. 08:47:09 dbaron: Other interesting ocnstraint is that the current restrictions on the values don't allow combinations of new values and old values, which is nice because we can prefix the new values and implement the whole new proposal 08:48:08 fantasai: so the remaining issue is the box model for bidi when you break the box across lines 08:48:24 http://lists.w3.org/Archives/Public/www-style/2011May/0186.html 08:48:39 s/ocnstraint/constraint/ 08:48:55 szilles has joined #css 08:49:07 vhardy has joined #css 08:51:34 reposting for Vincent: http://lists.w3.org/Archives/Public/www-style/2011May/0186.html 08:53:20 dbaron: ... yes, I think that makes sense 08:53:27 fantasai: So should we fix this? 08:53:42 dbaron: So Gecko does what the spec says in this case and it looks stupid 08:53:49 http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cp%20style%3D%22line-height%3A%202%22%3Ethis%20is%20a%20%3Cspan%20style%3D%22unicode-bidi%3A%20bidi-override%3B%20direction%3A%20rtl%3B%20border%3A%20medium%20solid%20green%22%3Eabcde%3Cbr%3Efghij%3C%2Fspan%3E%20text.%3C%2Fp%3E 08:53:49 fantasai: I think someone said IE9 does what we're proposing 08:54:37 plinss: bidi was so broken in CSS2.1 that I don't think there's a backwards-compat issue 08:55:05 sylvain loads the testcase 08:55:11 dbaron: That's what fantasai said it should do 08:55:32 bunch of ppl gather around dbaron and sylvain's laptops 08:56:11 so Elika's proposal sounds good to me 08:57:49 RESOLVED: Fix this in CSS2.1 and CSS3 Writing Modes 09:01:33 Meeting closed. 09:03:20 danield has left #css 09:15:14 RRSAgent: pointer 09:15:14 See http://www.w3.org/2011/06/02-css-irc#T09-15-14 09:15:29 RRSAgent: make logs public 09:23:18 TabAtkins has joined #css 09:45:32 szilles has joined #css 09:48:40 sylvaing has joined #css 09:58:33 jdaggett has joined #css 10:14:40 boblet has joined #css 11:21:34 szilles has joined #css 11:46:56 myakura has joined #css 11:48:40 Martijnc has joined #css 12:27:12 sylvaing has joined #css 12:34:20 szilles has joined #css 12:49:56 Ms2ger` has joined #css 13:04:33 jdaggett has joined #css 13:19:48 karl has joined #CSS 13:23:49 szilles has joined #css 14:04:01 plinss has joined #css 14:05:15 alexmog has joined #css 14:11:29 arron has joined #css 14:42:08 szilles has joined #css 15:07:03 arno has joined #css 15:07:43 boblet has joined #css 15:11:27 arronei has joined #CSS 15:16:25 arronei has joined #CSS 15:27:47 arronei has joined #CSS 15:50:57 lhnz has joined #css 15:54:07 szilles has joined #css 15:58:37 lhnz has joined #css 16:14:13 lhnz has joined #css 16:17:20 arno has joined #css 16:17:44 lhnz has joined #css 16:29:02 lhnz has joined #css 17:08:53 szilles has joined #css 17:44:36 konaya has joined #css 18:00:33 arno has joined #css 18:22:12 szilles has joined #css 18:51:38 mg has joined #css 19:01:47 arno has joined #css 19:15:03 mg has left #css 19:39:49 szilles has joined #css 20:46:05 arno has joined #css 20:52:40 szilles has joined #css 20:59:03 arno has joined #css 21:00:29 arno has joined #css 21:02:15 Sidnicious has joined #css 21:02:50 Hey. I'm trying to figure out how to express something with the flexible box model. Here's an example that works in WebKit/Gecko: http://jsbin.com/upino6/ 21:03:57 Essentially, I'd like the lower element to take up the extra space when there is extra space, but I'd like the upper element to gain a scrollbar and stay on screen when there isn't enough space, so that the body does not have a scrollbar. 21:04:09 Would that be possible? 21:22:04 sylvaing has joined #css 21:42:03 arno has joined #css 22:08:37 szilles has joined #css 22:14:14 myakura has joined #css 22:30:26 boblet has joined #css 22:34:45 sylvaing has joined #css 22:43:37 dbaron has joined #css 22:52:52 homata has joined #CSS 23:11:19 arno has joined #css 23:21:53 szilles has joined #css 23:54:34 TabAtkins has joined #css 23:58:26 dbaron has joined #css 23:59:06 sylvaing has joined #css