W3C home > Mailing lists > Public > www-style@w3.org > August 2012

Re: [css3-gcpm] bookmark-label: keyword definitions and whitespace processing

From: Håkon Wium Lie <howcome@opera.com>
Date: Sat, 18 Aug 2012 11:41:11 +0200
Message-ID: <20527.25399.964838.443213@gargle.gargle.HOWL>
To: Simon Sapin <simon.sapin@kozea.fr>
Cc: www-style@w3.org
Also sprach Simon Sapin:

 > The bookmark-label property has 5 possible keywords in its Value line, 
 > but does not define them. It should probably reference the string-set 
 > property, as the keywords seem to be the same.


 > Example 35 includes "bookmark-label: attr(title, string)", but the 
 > attr() syntax is not in the Value line.

Yes, css3-values has since changed. The example has been updated (and
"string" has been removed as this is the default value).

 > Lastly, I think that the label strings, at least when taken from the 
 > document, should go through the normal whitespace processing. For example:
 > <h1 style="bookmark-label: contents">
 >      This title is a bit long but that
 >      should not  be a problem.
 > </h1>

Yes, this seems reasonable.

 > Assuming the initial value for the 'white-space' property, the used 
 > value for bookmark-label should not include newlines or multiple 
 > consecutive spaces.
 > (Maybe this should not apply to <string> values, though.)

I'm unsure if this should be defined on the <string> value or on the
"bookmark-label" property. Probably the latter. For bookmarks, it
seems that one would always want white spaces to be pruned, while
other uses of <string> may want to preserve them.

              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Saturday, 18 August 2012 09:52:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:03 UTC