https://issues.apache.org/ooo/show_bug.cgi?id=125329

--- Comment #5 from Regina Henschel <rb.hensc...@t-online.de> ---
A universal selector * matches every element in the document tree.

A * can be followed by attribute selectors or ID-selectors (or -not yet
implemented in AOO-  pseudo-classes). In these cases the * my be omitted.

So
* matches all.
*.myclass is equivalent to .myclass
*#myId is equivalent to #myID

http://www.w3.org/TR/CSS21/selector.html#universal-selector

(In reply to Armin Le Grand from comment #2)
> Took a look. Regina, is it correct that in this case the '*' selector is:
> - active for all elements, thus it is used for 'svg' and both 'rect's

Yes, both rect elements match the * selector, but the first one gets its actual
stroke and fill colors from the ID-selector rule, because that is more
specific. The second rect element gets its stroke-width from the * selector,
because css has precedence over svg attribute.

(In reply to Armin Le Grand from comment #2)
> Took a look. Regina, is it correct that in this case the '*' selector is:
> - only one Css '*' selector is possible per file (?)

There are several * selectors per file possible, same as for other selectors.

-- 
You are receiving this mail because:
You are watching all issue changes.

Reply via email to