W3C home > Mailing lists > Public > public-openannotation@w3.org > January 2013

Re: Style CSS Challenge!

From: Anna Gerber <agerber@itee.uq.edu.au>
Date: Thu, 24 Jan 2013 22:38:47 +0000
To: public-openannotation <public-openannotation@w3.org>
Message-ID: <4A4F4EE8-5C6F-4FD6-BEBC-388380FBC556@uq.edu.au>

The approach that immediately comes to mind would be to use a CSS pseudo-element to create an overlay element that masks the other content.

Here's an example showing some CSS to mask text content where the segment of interest is the span with the styleClass 'selected'):


I'll have to think a bit more about how to do this with images.


On 25/01/2013, at 6:26 AM, Robert Sanderson wrote:

Dear all, and especially any lurking CSS gurus,

One of the frequently expressed use cases for Style is to dim the rest
of the resource, rather than put a border or color over top of the
segment of interest.  Especially for images, where a semi-transparent
color could obscure the features that are being annotated.

So, the challenge ... is there a way using CSS to natively express
this sort of thing?  If not, do we need to add a second property to
give the class to apply to everything except the segment?  For example
oa:styleClass is the class to apply to the segment and
oa:inverseStyleClass is the class to apply to everything else.

Many thanks!

Received on Thursday, 24 January 2013 22:39:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:38:21 UTC