| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
Differential Revision: https://phabricator.services.mozilla.com/D168555
|
|
|
|
| |
Differential Revision: https://phabricator.services.mozilla.com/D168281
|
|
|
|
|
|
| |
as part of the font shorthand in computed style
Differential Revision: https://phabricator.services.mozilla.com/D168250
|
|
|
|
|
|
|
|
|
|
|
|
| |
single-character literals
Generated by running
find servo/components/style -name "*.rs" -exec perl -p -i -e "s/write_str\(\"(.)\"\)/write_char('\1')/g" {} \;
(and then added `use std::fmt::Write;` in a couple of places to fix build errors that arose).
Differential Revision: https://phabricator.services.mozilla.com/D168217
|
|
|
|
|
|
| |
properties, and make font-synthesis into a shorthand
Differential Revision: https://phabricator.services.mozilla.com/D167480
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
when use_document_fonts=0, overriding the browser's font prefs
Some widely-used icon fonts use ligature rules to replace icon names such as "volume_up"
or "down_arrow" with icon glyphs. If the site is designed to use such a font, but the user
disables document fonts and we use our default Latin font instead, the underlying text will
be rendered instead of the intended icon.
To enable such fonts to continue to work, we provide a list of known ligature-icon fonts
and allow them to be used even when the document-fonts setting is disabled.
Differential Revision: https://phabricator.services.mozilla.com/D167923
|
|
|
|
|
|
|
|
|
| |
Colors can now be defined in different color spaces with the color()
function.
https://w3c.github.io/csswg-drafts/css-color-4/#predefined
Differential Revision: https://phabricator.services.mozilla.com/D164866
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added WebIDL interfaces as per spec, added some necessary changes to support maplike and setlike structures to be accessed from C++.
Added `::highlight(foo)` pseudo element to CSS engine.
Implemented Highlight as new kind of `Selection` using `HighlightType::eHighlight`. This implies Selections being added/removed during runtime (one `Selection` object per highlight identifier), therefore a dynamic container for highlight `Selection` objects was added to `nsFrameSelection`. Also, the painting code queries the highlight style for highlight Selections.
Implementation is currently hidden behind a pref `dom.customHighlightAPI.enabled`.
Differential Revision: https://phabricator.services.mozilla.com/D164203
|
|
|
|
|
|
|
|
|
|
|
| |
Named scroll progress timelines are declared in the coordinated value list
constructed from the longhands of the scroll-timeline shorthand property,
which form a coordinating list property group with scroll-timeline-name as
the coordinating list base property.
In the meantime, we also update its shorthand to match the current spec.
Differential Revision: https://phabricator.services.mozilla.com/D166596
|
| |
|
|
|
|
| |
Differential Revision: https://phabricator.services.mozilla.com/D167803
|
|
|
|
|
|
|
|
|
|
| |
The syntax of scroll-timeline shorthand is:
`[ <'scroll-timeline-name'> <'scroll-timeline-axis'>? ]#`.
This patch just updates WPT to match the spec.
Our fix will be together with Bug 1809005.
Differential Revision: https://phabricator.services.mozilla.com/D166595
|
|
|
|
|
|
|
| |
Per https://github.com/w3c/csswg-drafts/issues/7431, both timeline name
should accept `auto`.
Differential Revision: https://phabricator.services.mozilla.com/D166476
|
|
|
|
|
|
|
|
|
| |
view-timeline shorthand includes view-timeline-name and
view-timeline-axis, but excludes view-timeline-inset.
Note: We will fix the test of "view-timeline-name: auto" in the next patch.
Differential Revision: https://phabricator.services.mozilla.com/D166404
|
|
|
|
|
|
|
| |
Support view-timeline-inset: `[ [ auto | <length-percentage> ]{1,2} ]#`.
And its initial value is 0.
Differential Revision: https://phabricator.services.mozilla.com/D166243
|
|
|
|
|
|
|
|
|
|
|
| |
view-timeline-name: `none | <custom-ident>#`
view-timeline-axis: `[ block | inline | vertical | horizontal ]#`
Note:
Both view-timeline-name and scroll-timeline-name should accept `auto`.
We will fix it in this patch series.
Differential Revision: https://phabricator.services.mozilla.com/D166242
|
|
|
|
| |
Differential Revision: https://phabricator.services.mozilla.com/D167616
|
|
|
|
|
|
|
|
|
|
|
| |
The output progress of easing functions could be inf or -inf, per spec,
https://drafts.csswg.org/css-easing-2/#output-progress-value.
But we should avoid using infinity to calculate interpolation or use
the infinite progress in Web Animations API, per the spec issue comments:
https://github.com/w3c/csswg-drafts/issues/8344#issuecomment-1399033481
Differential Revision: https://phabricator.services.mozilla.com/D167342
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Use new changes from cssparser and use the new lab/lch/oklab/oklch color
formats.
Introduced a new color type AbsoluteColor. It represents any kind of
color that has absolute numerical values. It is also tied to a color
space and therefore can be trivially converted to another color space.
Differential Revision: https://phabricator.services.mozilla.com/D163579
|
|
|
|
|
|
|
| |
Factor out duplicated / common code to its own module, add / fix spec
links, and clean-up callers.
Differential Revision: https://phabricator.services.mozilla.com/D167253
|
|
|
|
|
|
| |
font-feature-settings and font-variation-settings
Differential Revision: https://phabricator.services.mozilla.com/D167012
|
|
|
|
| |
Differential Revision: https://phabricator.services.mozilla.com/D167130
|
|
|
|
|
|
| |
Same as above.
Differential Revision: https://phabricator.services.mozilla.com/D167126
|
|
|
|
|
|
|
|
|
| |
and Gecko
This removes the special AnimationIterationCount -> f32 conversion from
gecko.mako.rs which will be useful to simplify coordinated properties.
Differential Revision: https://phabricator.services.mozilla.com/D167123
|
|
|
|
| |
Differential Revision: https://phabricator.services.mozilla.com/D161800
|
|
|
|
|
|
|
|
|
|
|
|
| |
:nth-last-child(An+B of selector list)
Since we have been using a single hash map to cache all :nth-child
indices (with no selector list), each different selector will need its
own cache.
As a side note, this patch does not address invalidation.
Differential Revision: https://phabricator.services.mozilla.com/D166266
|
|
|
|
|
|
|
|
| |
They have been disabled since bug 1688695. There's a variety of
table-caption bugs that would be easier to fix if we didn't have to
account for side-captions.
Differential Revision: https://phabricator.services.mozilla.com/D165690
|
|
|
|
| |
Differential Revision: https://phabricator.services.mozilla.com/D166087
|
|
|
|
| |
Differential Revision: https://phabricator.services.mozilla.com/D166140
|
|
|
|
|
|
|
|
|
| |
list) and :nth-last-child(An+B of selector list)
:nth-{,last-}child parsing is disabled by default for now by pref
layout.css.nth-child-of.enabled.
Differential Revision: https://phabricator.services.mozilla.com/D165895
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This matches what the spec[1] says for font-style:
> Animation type: by computed value type; normal animates as oblique 0deg
A bunch of WPT tests for font-style animation are landing in https://github.com/web-platform-tests/wpt/pull/37570.
Current Gecko passes 66/129 of the testcases there; with this patch applied it passes all the tests.
[1] https://drafts.csswg.org/css-fonts-4/#font-style-prop
Differential Revision: https://phabricator.services.mozilla.com/D166128
|
|
|
|
|
|
|
| |
There's no font-style-adjust property, and no FontStyleAdjust type anywhere I can see.
So the mention in data.py is redundant (and potentially confusing).
Differential Revision: https://phabricator.services.mozilla.com/D166127
|
|
|
|
|
|
| |
size for font-dependent units
Differential Revision: https://phabricator.services.mozilla.com/D165842
|
|
|
|
|
|
|
| |
The spec is still using `Scroll-linked`, so we exclude the change of WPT tests.
I believe WPT will get updates once the spec doc is renamed.
Differential Revision: https://phabricator.services.mozilla.com/D165914
|
|
|
|
|
|
|
|
|
|
|
|
| |
and OnlyOfType as functionless Nth variants
Like bug 1808226, this doesn't change any behavior, it just simplifies matching.
I also added a WPT JavaScript test for :only-of-type, since dedicated WPT
JavScript tests already exist for the other pseudo-classes this patch
touches.
Differential Revision: https://phabricator.services.mozilla.com/D165859
|
|
|
|
| |
Differential Revision: https://phabricator.services.mozilla.com/D164422
|
|
|
|
|
|
|
|
|
|
|
| |
To accomplish this, all :nth- Components were replaced with type Nth,
which uses NthSelectorData.
Using NthSelectorData will make it easier to add selector lists for :nth
selectors later on, but this change by itself shouldn't change any
behavior.
Differential Revision: https://phabricator.services.mozilla.com/D165831
|
| |
|
|
|
|
|
|
| |
Depends on D164554
Differential Revision: https://phabricator.services.mozilla.com/D164549
|
|
|
|
| |
Differential Revision: https://phabricator.services.mozilla.com/D165737
|
|
|
|
|
|
|
|
|
| |
Allow keyword evaluators to return unknown.
Do you know of a good test to extend here? Otherwise I can add a new
one, though I gotta run atm.
Differential Revision: https://phabricator.services.mozilla.com/D165630
|
| |
|
|
|
|
|
|
| |
This makes me a bit happier about the previous patch :)
Differential Revision: https://phabricator.services.mozilla.com/D165236
|
| |
|
|
|
|
|
|
|
| |
See related webcompat issues and discussion in
https://github.com/w3c/csswg-drafts/issues/8063
Differential Revision: https://phabricator.services.mozilla.com/D165058
|
|
|
|
| |
Differential Revision: https://phabricator.services.mozilla.com/D165542
|
|
|
|
| |
Differential Revision: https://phabricator.services.mozilla.com/D165385
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When apply_declarations is used for a pseudo-element, make it pass the
parent_style as the originating_element_style for container queries.
This requires changing some parameters from Option<&Arc<ComputedValues>>
to Option<&ComputedValues>.
It's not a complete solution, since e.g. parent_style is not the style
of the originating element of a ::backdrop. But here it's not as simple
as in D164908, so leaving these details for later.
Differential Revision: https://phabricator.services.mozilla.com/D164977
|