Better HN
topnewbestaskshowjobs
Log inSign up

heycam

138 karma · joined May 21, 2013 (13y ago) · 25 submissions

https//twitter.com/heycam
Submissions

comment 6y ago · link · parent

Support for font-variation-settings has been on by default since Firefox 62, which was released almost two years ago. Are you using a Firefox older than that?

comment 6y ago · link · parent

Nice. For comparison, here is Mozilla's implementation in Rust, which is integrated into Firefox: https://github.com/mozilla/neqo

comment 7y ago · link · parent

There's a great series of posts going into more detail about Pernosco's design and advantages that is linked to in the final paragraph: https://pernos.co/about/

comment 7y ago · link · parent

On https://codetribute.mozilla.org/ you can find mentored Mozilla project bugs to work on (not just Firefox) indexed by language.

comment 7y ago · link · parent

And this is landing very soon in Firefox, behind a pref. https://twitter.com/svoisen/status/1159322370122768384

comment 7y ago · link · parent

It's probably referring to this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1089326

comment 9y ago · link · parent

Firefox and Servo use 1/60 as the smallest layout unit for the same reason.

http://searchfox.org/mozilla-central/source/gfx/src/AppUnits...

http://doc.servo.org/app_units/

https://bugzilla.mozilla.org/show_bug.cgi?id=177805

comment 9y ago · link · parent

Unfortunately for me, the fact that rr can't run on Ryzen CPUs is a dealbreaker. :(

https://github.com/mozilla/rr/issues/2034

comment 11y ago · link · parent

Cheers!

comment 11y ago · link · parent

There are minor benefits without ABP. For each page/iframe that is created, we can avoid running the CSS cascade (and share those data structures) for the UA style sheets. It's saves something like 100 KiB per document.

If other add-ons insert a common style sheet into all documents (it's plausible Stylish does something like this? though I've never checked) then we'll again be able to avoid running the cascade and having duplicate data structures for the cascade across different documents.

comment 11y ago · link · parent

Interesting that Firefox takes the decomposed Hangul and renders it as whole syllables, while Chrome shows them as the sequence of individual jamos. http://mcc.id.au/temp/hangul.png

comment 11y ago · link · parent

I just did some poking around, and it looks like uBlock does insert a couple of <style> elements into the document. I'm not sure if this is how all style-based blocking is done in uBlock, but since these are document-level style sheets, they are not shared like user agent-level sheets are. (We will in the future be investigating whether we can share more data between common document-level style sheets across multiple documents, though.)

comment 11y ago · link · parent

Thank you!

comment 11y ago · link · parent

I can't see where on that page it talks about using style sheets. Last week I searched the µBlock sources for use of the nsIStyleSheetService, which is Gecko's internal interface for adding style sheets without manipulating individual documents, and the only use of that interface is for adding css/legacy-toolbar-button.css, which I assume is for some UI.

comment 11y ago · link · parent

µBlock does not use the same technique of creating a style sheet and inserting it into all loaded documents, so the type of sharing done as part of this work does not help µBlock.

comment 12y ago · link · parent

This kind of underline painting behaviour is proposed in http://dev.w3.org/csswg/css-text-decor-3/#text-decoration-sk... as text-decoration-skip:ink. Not yet implemented anywhere though.

comment 12y ago · link · parent

Firefox will warn when you try to submit the form.

Filed https://bugzilla.mozilla.org/show_bug.cgi?id=1077880.

comment 12y ago · link · parent

The equivalent rules for Mozilla code: https://developer.mozilla.org/en-US/docs/Using_CXX_in_Mozill...

comment 12y ago · link · parent

Browsers have a very limited set of properties that they allow in :visited rules, and display isn't one of them.

comment 12y ago · link · parent

As pornel pointed out, CSS Variables are really custom properties that cascade and inherit just like regular properties. Since "$" is used by CSS preprocessors for variables that work in a different way, I think Tab felt that it would cause too much confusion to use the same symbol. The set of remaining ASCII non-alphabetic characters that CSS doesn't use is pretty small too; perhaps "$" is slated for use by some other feature.

There's also a desire in the WG to have a consistent naming scheme for custom CSS things, including custom media queries, custom pseudo-classes to use in selectors, etc. "--" is something that doesn't scream "variables" and so would be usable for those other things.

comment 12y ago · link · parent

Please note that the final syntax for CSS Variables changed recently, so in Firefox 31 and later, where the feature is enabled by default, you declare variables like this:

:root { --spacing: 16px; }

and reference them like this:

body { padding: var(--spacing); }

comment 12y ago · link · parent

That's the Foundation. The three current Corporation board members are listed here: http://www.mozilla.org/en-US/foundation/moco/

comment 12y ago · link · parent

The bylaws of the Corporation are more relevant: http://www.mozilla.org/en-US/legal/bylaws.html

comment 12y ago · link · parent

Try http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/lates... instead. Not sure why the Aurora landing page is not using the right link.

comment 13y ago · link · parent

Yeah, I just started today on adding the ability (internally) for style declarations to expose colours in the syntax they were originally specified in (bug 731271), which the dev tools people will then be able to use.