- From: Hamish Willee via GitHub <sysbot+gh@w3.org>
- Date: Fri, 05 Aug 2022 03:41:52 +0000
- To: public-svg-issues@w3.org
hamishwillee has just created a new issue for https://github.com/w3c/svgwg: == SVGStyleElement.title and HTMLStyleElement.title have different semantics == According to [spec here](https://svgwg.org/svg2-draft/styling.html#StyleElementTitleAttribute) > The semantics and processing of a ‘[style](https://svgwg.org/svg2-draft/styling.html#StyleElement)’ and its attributes must be the same as is defined for the [HTML ‘style’ element](https://html.spec.whatwg.org/multipage/semantics.html#the-style-element). But the semantics sound quite different: - `SVGStyleElement.title`: This attribute specifies a title for the style sheet, which is used when exposing and selecting between alternate style sheets. The attribute takes any value. - `HTMLStyleElement.title`: at [this spec link](https://html.spec.whatwg.org/multipage/semantics.html#htmlstyleelement) says The title attribute on [style](https://html.spec.whatwg.org/multipage/semantics.html#the-style-element) elements defines [CSS style sheet sets](https://drafts.csswg.org/cssom/#css-style-sheet-set). If the [style](https://html.spec.whatwg.org/multipage/semantics.html#the-style-element) element has no [title](https://html.spec.whatwg.org/multipage/semantics.html#attr-style-title) attribute, then it has no [title](https://html.spec.whatwg.org/multipage/dom.html#attr-title); the title attribute of ancestors does not apply to the [style](https://html.spec.whatwg.org/multipage/semantics.html#the-style-element) element. If the [style](https://html.spec.whatwg.org/multipage/semantics.html#the-style-element) element is not [in a document tree](https://dom.spec.whatwg.org/#in-a-document-tree), then the [title](https://html.spec.whatwg.org/multipage/semantics.html#attr-style-title) attribute is ignored. [[CSSOM]](https://html.spec.whatwg.org/multipage/references.html#refsCSSOM) Please view or discuss this issue at https://github.com/w3c/svgwg/issues/892 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 5 August 2022 03:41:54 UTC