[webkit-dev] Request for Position on URLPattern

2021-08-13 Thread Ben Kelly via webkit-dev
Hello,

I would like to request an official WebKit position on URLPattern [0].
This is a web API for matching against URLs which is often done in
javascript routing systems.  We also intend to use this same matching
primitive in future changes to service worker scopes.  This larger set of
use cases is described in the explainer. [1]  This particular request,
however, is just for the URLPattern API and does not yet touch service
workers.

URLPattern was discussed in a couple of past TPAC meetings:

* TPAC 2019 [2]
* TPAC 2020 Video Call [3]

In case it's helpful, we also have a summary of web developer feedback
we've received so far. [4]

Thank you.

Ben

[0]: https://wicg.github.io/urlpattern
[1]: https://github.com/WICG/urlpattern/blob/main/explainer.md
[2]:
https://docs.google.com/document/d/1q090ovJ4gd8wSfVtvuoZLMZ51YkiFDsEZ0Jiqi41Iys/edit#heading=h.d6e4ecicreet
[3]: https://github.com/w3c/ServiceWorker/issues/1535
[4]: https://github.com/WICG/urlpattern/blob/main/dev-trials-feedack.md
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] Position on font-family: emoji (and -webkit-pictograph)

2021-08-13 Thread Michael Catanzaro via webkit-dev
On Fri, Aug 13 2021 at 01:54:39 PM +0200, Frédéric Wang via 
webkit-dev  wrote:
I understand there is backward compat concerns about removing 
features but do we agree to add "emoji" as an alias for 
"-webkit-pictograph", similar to what we did in [3] for "system-ui"?


This sounds pretty uncontroversial. ;)


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


[webkit-dev] Request for position: Clipboard API SVG support

2021-08-13 Thread Wenson Hsieh via webkit-dev
Hi Darwin!

Adding the SVG MIME type ("image/svg+xml") to the list of web-safe clipboard 
types (currently plain text, URLs, and HTML) seems reasonable, provided that 
the UA is able to sanitize the SVG payload (similar to what we do for HTML, 
currently). On Cocoa platforms, this would probably be bridged to and from the 
OS in the form of (sanitized) data corresponding to the UTTypeSVG universal 
type identifier on the platform pasteboard.

As an aside — since SVG documents are parsed using the XML parser as opposed to 
the HTML parser, supporting SVG as a web-safe clipboard type will be a bit more 
involved than simply adding "image/svg+xml" to the list of known UA clipboard 
types and using the current HTML sanitization algorithm.

— Wenson
> Looking for a position on adding svg support for the async clipboard API
> (ex. `navigator.clipboard.write`), in a similar manner to the HTML support
>  > already added. Thank
> you!
> 
> * Base Specification Title: Clipboard API and events
>  >
> * Specification or proposal URL: Explainer here
>   
> >
> Other information:
> * https://www.chromestatus.com/feature/5125790490427392 
>  has more links
> * https://github.com/w3c/editing/issues/305 
>  may also be relevant
> 
> -- 
> - Darwin Huang
> -- next part --
> An HTML attachment was scrubbed...
> URL: 
>   
> >
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


[webkit-dev] Position on font-family: math

2021-08-13 Thread Frédéric Wang via webkit-dev

Hello WebKittens,

I'd like to get opinion about implementing "font-family: math":

https://www.w3.org/TR/css-fonts-4/#valdef-font-family-math

This is a generic font family name from CSS fonts level 4, which is 
exactly doing what we need for MathML to get a default user-customizable 
math font (instead of the hardcoded values we currently have in the 
mathml.css UA sheet).


See also

https://webkit-search.igalia.com/webkit/rev/b28eaa8f270a9223d76cc4da9072d42baf2061fc/Source/WebCore/css/mathml.css#78

https://trac.webkit.org/wiki/MathML/Fonts#CustomizingMathFont

https://bugs.webkit.org/show_bug.cgi?id=156843

--
Frédéric Wang


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


[webkit-dev] Position on font-family: emoji (and -webkit-pictograph)

2021-08-13 Thread Frédéric Wang via webkit-dev

Hi,

In 2011, a font-family: -webkit-pictograph was implemented in WebKit 
[1]. However a new "font-family: emoji" value was added in the CSS Fonts 
Module Level 4 spec [3].


I understand there is backward compat concerns about removing features 
but do we agree to add "emoji" as an alias for "-webkit-pictograph", 
similar to what we did in [3] for "system-ui"?


Thanks,

[1] https://bugs.webkit.org/show_bug.cgi?id=65197
[2] https://drafts.csswg.org/css-fonts/#font-family-prop
[3] https://bugs.webkit.org/show_bug.cgi?id=151493

--
Frédéric Wang

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev