aboutsummaryrefslogtreecommitdiffstats
path: root/components/style
Commit message (Collapse)AuthorAgeFilesLines
...
* style: [refactor] Migrate NS_STYLE_TEXT_DECORATION_STYLE_* definesBen Freist2023-11-041-0/+1
| | | | Differential Revision: https://phabricator.services.mozilla.com/D163177
* style: Properly handle ::backdropOriol Brufau2023-11-041-2/+7
| | | | | | Depends on D164807 Differential Revision: https://phabricator.services.mozilla.com/D164908
* Further changes required by ServoOriol Brufau2023-11-041-0/+5
|
* style: Fix elements not being query containers for the pseudo-element they ↵Oriol Brufau2023-11-045-49/+128
| | | | | | originate. r=emilio Differential Revision: https://phabricator.services.mozilla.com/D164807
* style: Unconditionally enable container properties in UA sheetsEmilio Cobos Álvarez2023-11-042-1/+4
| | | | | | | | | | | If the UA sheet gets parsed with the pref off, and then the pref gets flipped on, we don't re-parse the UA sheet (nor we want to). Enable the property in UA sheets unconditionally so that the test passes even when the browser was started-up with the container queries pref off. Differential Revision: https://phabricator.services.mozilla.com/D164823
* style: Lint container_rule.rsOriol Brufau2023-11-041-37/+35
| | | | | | | Just using 'rustup run nightly rustfmt'. No change in behavior. Differential Revision: https://phabricator.services.mozilla.com/D164805
* style: Re-evaluate container queries when container gets display:contentsOriol Brufau2023-11-044-4/+20
| | | | Differential Revision: https://phabricator.services.mozilla.com/D164234
* style: Fix outline-style: inherit behavior if you don't specify outline-widthEmilio Cobos Álvarez2023-11-042-16/+11
| | | | | | | | | | The fix is calling set_outline_style so that we also reset the actual outline width. Also clean-up surrounding code a little bit to be marginally more efficient, and do the same change for border-*-style (which was doing the right thing, but it's better to make sure both stay in sync). Differential Revision: https://phabricator.services.mozilla.com/D164554
* style: Remove the about:config pref for subgrid, ↵Daniel Holbert2023-11-041-1/+1
| | | | | | layout.css.grid-template-subgrid-value.enabled, since it's been default-enabled for years Differential Revision: https://phabricator.services.mozilla.com/D164389
* style: Don't share style for cousins that are using Container QueriesZiran Sun2023-11-041-2/+8
| | | | Differential Revision: https://phabricator.services.mozilla.com/D164224
* style: followup - revert the serialization change, and instead fix the test ↵Jonathan Kew2023-11-041-6/+4
| | | | | | to expect lowercase Differential Revision: https://phabricator.services.mozilla.com/D164219
* style: Serialize font-face src tech() keywords in mixed-case to match the ↵Jonathan Kew2023-11-041-4/+6
| | | | | | spec; fix the associated WPT test to do case-insensitive comparisons Differential Revision: https://phabricator.services.mozilla.com/D164202
* style: Remove 'font-palette' from the 'font' shorthandJonathan Kew2023-11-041-9/+3
| | | | Differential Revision: https://phabricator.services.mozilla.com/D164128
* style: [refactor] Migrate NS_STYLE_LIST_STYLE_* definesBen Freist2023-11-041-10/+11
| | | | Differential Revision: https://phabricator.services.mozilla.com/D163792
* style: Evaluate size feature to unknown if the container lacks size containmentOriol Brufau2023-11-043-30/+14
| | | | | | | For example, inline elements may have container-type:size but they don't support size containment, so @container(width >= 0) shouldn't match. Differential Revision: https://phabricator.services.mozilla.com/D163936
* Further changes required by ServoOriol Brufau2023-11-041-1/+2
|
* style: Parse errors in individual @font-face src components should cause ↵Jonathan Kew2023-11-041-7/+34
| | | | | | only the bad component to be dropped, not the entire descriptor Differential Revision: https://phabricator.services.mozilla.com/D163810
* style: @container(width:0) shouldn't match elements with no boxOriol Brufau2023-11-043-16/+17
| | | | | | Depends on D163879 Differential Revision: https://phabricator.services.mozilla.com/D163844
* style: Implement Kleene logic for query feature expressionsOriol Brufau2023-11-042-6/+7
| | | | Differential Revision: https://phabricator.services.mozilla.com/D163879
* style: Make container queries check content-box sizeOriol Brufau2023-11-043-5/+8
| | | | | | | | They were checking the border-box size (with paddings and borders), but https://drafts.csswg.org/css-contain-3/#size-container says it should be the content-box size. Differential Revision: https://phabricator.services.mozilla.com/D163784
* Further changes required by ServoOriol Brufau2023-11-041-1/+5
|
* style: Fix style containment not triggered by 'contain'Oriol Brufau2023-11-042-5/+81
| | | | | | | | | | | | | | | | | | | | 'container-type' and 'content-visibility' can trigger various kinds of containment, but this was done via nsStyleDisplay::EffectiveContainment, to avoid affecting the computed value of 'contain'. This was fine except for style containment, which needs to set the flag SELF_OR_ANCESTOR_HAS_CONTAIN_STYLE in order to really work, but this was only done with 'contain: style'. So this patch removes nsStyleDisplay::EffectiveContainment, and instead uses two fields for containment: mContain and mEffectiveContainment. This is somewhat analogous to mDisplay and mOriginalDisplay, though in that case the computed value is the modified display. Also fixes a typo in IsContainStyle() that made it return true for any kind of containment, not just for style containment. Differential Revision: https://phabricator.services.mozilla.com/D163779
* style: Speed up dom iteration in querySelectorEmilio Cobos Álvarez2023-11-041-8/+10
| | | | | | | | This removes a few branches and null-checks that I found in profiles. Depends on D163627 Differential Revision: https://phabricator.services.mozilla.com/D163628
* style: Speed up selector matching with already-lowercase local name selectorsEmilio Cobos Álvarez2023-11-041-1/+1
| | | | | | | | | This makes relatively simple changes so that we check lowercase-ness of local-name selectors first. If so, we don't need to check whether we're an HTML element in an HTML document, which requires a fair bit of pointer-chasing. Differential Revision: https://phabricator.services.mozilla.com/D163627
* style: Implement Buttonborder/mark/marktextEmilio Cobos Álvarez2023-11-041-0/+4
| | | | | | Needs some extra test expectation updates. Differential Revision: https://phabricator.services.mozilla.com/D157748
* style: Remove explicit rust target for bindgen in styloMike Hommey2023-11-041-3/+0
| | | | | | | This doesn't seem necessary anymore. It was originally added to disable unions, which is now done with disable_untagged_union. Differential Revision: https://phabricator.services.mozilla.com/D163662
* style: Remove non-standard and unused system font valuesEmilio Cobos Álvarez2023-11-042-8/+16
| | | | | | | | | | And hide internal but used values. System fonts are not exposed in the computed style so this should be fine. If we need the old values for some obscure reason, it's trivial to alias them to e.g., menu or so. Differential Revision: https://phabricator.services.mozilla.com/D163269
* style: Upgrade bindgen to 0.63.0Mike Hommey2023-11-041-1/+1
| | | | Differential Revision: https://phabricator.services.mozilla.com/D163375
* style: Follow-up clean-ups and tweaksEmilio Cobos Álvarez2023-11-045-135/+148
| | | | | | | | <general-enclosed> should be handled in parse_in_parens. Add some convenience functions to KleeneValue. Differential Revision: https://phabricator.services.mozilla.com/D163214
* style: Add parsing for <general-enclosed> in queries conditionsZiran Sun2023-11-047-30/+164
| | | | | | See https://drafts.csswg.org/mediaqueries-5/#typedef-general-enclosed Differential Revision: https://phabricator.services.mozilla.com/D158662
* Further changes required by ServoOriol Brufau2023-11-041-1/+8
|
* style: Implement CSS mod() and rem() functionsConnor Pearson2023-11-042-1/+152
| | | | Differential Revision: https://phabricator.services.mozilla.com/D163166
* style: Green up and re-enable style system layout testsEmilio Cobos Álvarez2023-11-041-0/+3
| | | | | | | | It's unclear to me when they were disabled, but we do want to enable these as otherwise there's no way to catch bindgen issues that can end up in subtle bugs at best, or memory corruption at worst. Differential Revision: https://phabricator.services.mozilla.com/D162997
* style: Alias -webkit-clip-path to clip-path for webcompatThomas Wisniewski2023-11-042-1/+1
| | | | Differential Revision: https://phabricator.services.mozilla.com/D162674
* style: Remove unused -moz-window-frame appearance constantsEmilio Cobos Álvarez2023-11-041-6/+0
| | | | Differential Revision: https://phabricator.services.mozilla.com/D162864
* style: Use root element font size for rem calculation in Container queriesZiran Sun2023-11-042-2/+2
| | | | Differential Revision: https://phabricator.services.mozilla.com/D162853
* style: [refactor] Migrate NS_STYLE_UNICODE_BIDI_* definesBen Freist2023-11-041-0/+1
| | | | Differential Revision: https://phabricator.services.mozilla.com/D162487
* style: Exclude 'size' from the 'all' shorthandOriol Brufau2023-11-041-0/+2
| | | | Differential Revision: https://phabricator.services.mozilla.com/D162568
* style: Remove appearance: -moz-win-glass, which is unusedEmilio Cobos Álvarez2023-11-041-3/+0
| | | | | | This we don't need to uplift. Differential Revision: https://phabricator.services.mozilla.com/D162535
* Further changes required by ServoOriol Brufau2023-11-041-0/+1
|
* style: Implement label[value] and start/end cropping with CSS rather than ↵Emilio Cobos Álvarez2023-11-042-4/+14
| | | | | | | | | | XUL layout This reduces the weird interactions that can appear on menus. This also progresses BiDi support, including for accesskeys. Differential Revision: https://phabricator.services.mozilla.com/D161498
* style: container-queries: Stop restrict none/auto/normal from <custom-ident>Ziran Sun2023-11-041-1/+1
| | | | Differential Revision: https://phabricator.services.mozilla.com/D161764
* style: [refactor] Migrate NS_STYLE_TEXT_COMBINE_UPRIGHT_* definesBen Freist2023-11-041-0/+1
| | | | Differential Revision: https://phabricator.services.mozilla.com/D161965
* style: Remove unused std::ops::Rem implementationsConnor Pearson2023-11-042-29/+2
| | | | Differential Revision: https://phabricator.services.mozilla.com/D161844
* style: Remove display: -moz-popupEmilio Cobos Álvarez2023-11-041-6/+0
| | | | | | | We already rely on it applying only to XULPopupElement's. Make it explicit and remove the CSS value. Differential Revision: https://phabricator.services.mozilla.com/D161552
* Move `*_traits` and other shared types to `shared`Martin Robinson2023-11-031-1/+1
| | | | | | | | | | | | This is the start of the organization of types that are in their own crates in order to break dependency cycles between other crates. The idea here is that putting these packages into their own directory is the first step toward cleaning them up. They have grown organically and it is difficult to explain to new folks where to put new shared types. Many of these crates contain more than traits or don't contain traits at all. Notably, `script_traits` isn't touched because it is vendored from Gecko. Eventually this will move to `third_party`.
* style: Check that we do not insert more than MAX_GRID_LINE subgrid line name ↵Emily McDonough2023-11-031-12/+23
| | | | | | | | lists while constructing the list This helps avoid OOM with very large repeats. Differential Revision: https://phabricator.services.mozilla.com/D161533
* style: Make panel animations a LookAndFeel intEmilio Cobos Álvarez2023-11-031-1/+2
| | | | | | | This will allow us to enable panel animations in some Linux configurations but not others. Also, it's cleaner. Differential Revision: https://phabricator.services.mozilla.com/D161693
* Further changes required by ServoOriol Brufau2023-11-031-1/+8
|
* style: Implement CSS round() functionConnor Pearson2023-11-036-117/+649
| | | | | | Co-Authored-By: Emilio Cobos Álvarez <emilio@crisal.io> Differential Revision: https://phabricator.services.mozilla.com/D156742