browser-compat-data icon indicating copy to clipboard operation
browser-compat-data copied to clipboard

css.properties.glyph-orientation-horizontal - missing

Open Josh-Cena opened this issue 1 year ago • 4 comments

What type of issue is this?

Missing compatibility data

What information was incorrect, unhelpful, or incomplete?

glyph-orientation-vertical was added in https://github.com/mdn/browser-compat-data/pull/21052, but looks like the horizontal counterpart is missing.

Discovered while working on https://github.com/mdn/content/pull/35108.

What browsers does this problem apply to, if applicable?

Safari

What did you expect to see?

css.properties.glyph-orientation-horizontal documented.

Did you test this? If so, how?

Run [...getComputedStyle(document.documentElement)].indexOf("glyph-orientation-horizontal") in Safari

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

No response

Do you have anything more you want to share?

No response

MDN URL

No response

MDN metadata

No response

Josh-Cena avatar Aug 06 '24 18:08 Josh-Cena

There's actually no "horizontal" counterpart, surprisingly enough! The spec says:

UAs must [...] treat as invalid the glyph-orientation-horizontal property in its entirety.

queengooborg avatar Sep 09 '24 06:09 queengooborg

Which spec are you looking at @queengooborg? This is a deprecated SVG attribute that can be written in CSS. It's only supported by Safari.

Josh-Cena avatar Sep 09 '24 20:09 Josh-Cena

This is the spec I'm looking at: https://drafts.csswg.org/css-writing-modes-4/#glyph-orientation

queengooborg avatar Sep 09 '24 21:09 queengooborg

The spec says it should be invalid, but Safari obviously supports it to the full extent both based on the getComputedStyle test and from the table in https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/glyph-orientation-horizontal. In this case doesn't mean it's still a (possibly non-standard) part of the web?

Josh-Cena avatar Sep 09 '24 21:09 Josh-Cena