You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2014/07/30 19:16:21 UTC

[Issue 125329] New: [SVG] The selector * is not read

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

          Issue ID: 125329
        Issue Type: DEFECT
           Summary: [SVG] The selector * is not read
           Product: Draw
           Version: 4.2.0-dev
          Hardware: PC
                OS: Windows 7
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: formatting
          Assignee: issues@openoffice.apache.org
          Reporter: rb.henschel@t-online.de

Created attachment 83752
  --> https://issues.apache.org/ooo/attachment.cgi?id=83752&action=edit
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.

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

[Issue 125329] [SVG] The selector * is not read

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125329

--- Comment #3 from SVN Robot <sv...@dev.null.org> ---
"alg" committed SVN revision 1630497 into trunk:
i125329 Take care of Css selector '*'

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

[Issue 125329] [SVG] The selector * is not read

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125329

--- Comment #6 from Armin Le Grand <Ar...@me.com> ---
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?

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

[Issue 125329] [SVG] The selector * is not read

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125329

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Armin.Le.Grand@me.com
           Assignee|issues@openoffice.apache.or |Armin.Le.Grand@me.com
                   |g                           |

--- Comment #1 from Armin Le Grand <Ar...@me.com> ---
Grepping to keep in focus

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

[Issue 125329] [SVG] The selector * is not read

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125329

--- Comment #2 from Armin Le Grand <Ar...@me.com> ---
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 (?)

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

[Issue 125329] [SVG] The selector * is not read

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125329

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---
     Ever confirmed|0                           |1

--- Comment #7 from Armin Le Grand <Ar...@me.com> ---
More to be done, reopening

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

[Issue 125329] [SVG] The selector * is not read

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125329

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |4.2.0

--- Comment #4 from Armin Le Grand <Ar...@me.com> ---
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.

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

[Issue 125329] [SVG] The selector * is not read

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=125329

--- Comment #5 from Regina Henschel <rb...@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.