Re: Closing ACTION-2947: Propose wording for highlighting and :target

Hi Chris.

Chris Lilley:
> ACTION-2947: Propose wording for highlighting and :target
> 
> There was only one occurrence of highlight in the linking chapter.
> http://dev.w3.org/SVG/profiles/1.1F2/master/linking.html#ViewElement
> 
> I split out the wording about highlighting to a new section, and added
> a suggestion to use the CSS3 :target selector (this was not in CSS
> 2.1). I also added an informative reference to CSS3 selectors.
>
> For SVG2, I suggest we keep the same wording but make support of
> :target a normative requirement. I don't want to add that to 1.1 at
> this late stage, so its just an informative note.
>
> Old text:
> 
> Indicates the target object associated with the view. If provided,
> then the target element(s) will be highlighted.
>
> New text:
> 
> Indicates the target object associated with the view. 
> 
> Highlighting views
> 
> It is helpful to users if the target element(s) are highlighted. The
> visual styling of this highlight should be decided by the document
> author, because the SVG User Agent has no way to determine what
> changes would make the elements more visible.
>
> The CSS :target selector ([Selectors], section 6.2.2) may be used in
> a stylesheet to provide alternate styling for elements which are the
> target of links. For example:
>
> <style type="text/css">
> #foo:target {filter: url(#glow)}
> /* when the element with id foo is linked to, use a glow filter */
> 
> .bar :target {stroke: green; fill-opacity: 0.5}
> /* when any descendants of elements with class bar are linked
>    to, make the fill partly transparent and use a green stroke */
> 
> :target {stroke: red }
> /* for everything else, just use a red stroke */ 
> </style>

This change looks good to me.  This hasn’t been committed yet, is that
right?  If so, could you do so?  I will also update linking-uri-0{1,2}-b
so that the test slide doesn’t indicate that highlighting will occur.
(I think you already changed the pass criteria in those tests.)

Thanks,

Cameron

-- 
Cameron McCormack ≝ http://mcc.id.au/

Received on Sunday, 6 March 2011 21:12:39 UTC