Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | [SVG] The selector * is not read | ||||||
---|---|---|---|---|---|---|---|
Product: | Draw | Reporter: | Regina Henschel <rb.henschel> | ||||
Component: | formatting | Assignee: | AOO issues mailing list <issues> | ||||
Status: | REOPENED --- | QA Contact: | |||||
Severity: | Normal | ||||||
Priority: | P3 | CC: | Armin.Le.Grand | ||||
Version: | 4.2.0-dev | ||||||
Target Milestone: | 4.2.0 | ||||||
Hardware: | PC | ||||||
OS: | Windows 7 | ||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||
Developer Difficulty: | --- | ||||||
Attachments: |
|
Grepping to keep in focus 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 - only one Css '*' selector is possible per file (?) "alg" committed SVN revision 1630497 into trunk: i125329 Take care of Css selector '*' Okay, added code to have the * selector added to the styles chain as last element if available. This makes the import look as in other browsers. 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. Hi Regina, thanks so far. I will also need to add support for
*.myclass is equivalent to .myclass
*#myId is equivalent to #myID
or in short: When no '*' alone, delete it.
> There are several * selectors per file possible, same as for other selectors.
Should this not be only one standalone '*' one? Which one will win when there are several ones? Or was this sentence about e.g. several *.myclass or similar?
More to be done, reopening Reset the assignee to the default "issues@openoffice.apache.org". |
Created attachment 83752 [details] example with * selector Insert attached graphic into a Draw document. Compare it with opening in a browser. The rectangle belongs to the subjects of the * selector. Therefore the declarations of the rule must be considered. That leads to fill in silver instead of default black, and stroke-width 1 from css instead of 10 from non-css.