servo/components/style
Emilio Cobos Álvarez 6cfdd989d5 style: Implement <tabpanels> and <deck> without XUL layout
Gijs for front-end bits, layout for the new CSS properties and the
removal of nsDeckFrame / nsStackLayout, Jamie and Morgan for the a11y
changes.

As discussed in the bug, the main tricky part here is handling a11y
correctly. For <deck>, that's trivial (just use `visibility: hidden` to
hide the panels visually, while removing the unselected panels from the
a11y tree).

For <tabpanels> however we need to do something special. We do want to
hide stuff visually, but we want to preserve the contents in the a11y
tree.

For that, the easiest fix is introducing a new privileged CSS property
(-moz-subtree-hidden-only-visually), which takes care of not painting
the frame, but marks stuff offscreen in the accessibility tree. This is
not intended to be a property used widely.

Other than that, the changes are relatively straight-forward, though
some of the accessible/mac changes I could get a sanity-check on.

Differential Revision: https://phabricator.services.mozilla.com/D157875
2023-11-03 08:59:49 +01:00
..
counter_style style: Run rustfmt on servo/components/style and servo/ports/geckolib 2023-06-09 10:22:19 +02:00
gecko style: Drop @scroll-timeline rule entirely 2023-11-03 08:59:49 +01:00
gecko_bindings style: Unify font-family storage 2023-05-24 18:32:35 +02:00
gecko_string_cache Miscellaneous build / tidy fixes. 2021-02-26 17:53:55 +01:00
invalidation style: Drop @scroll-timeline rule entirely 2023-11-03 08:59:49 +01:00
media_queries style: Add support for parsing container-query-specific features 2023-08-16 17:46:41 +02:00
properties style: Implement <tabpanels> and <deck> without XUL layout 2023-11-03 08:59:49 +01:00
queries style: More container queries plumbing 2023-08-16 17:46:41 +02:00
rule_tree style: Move size of tests to compile-time tests in the style crate 2023-08-16 17:46:41 +02:00
servo Anonymous boxes that wrap inlines should not inherit overflow (#30579) 2023-10-19 13:43:55 +00:00
sharing style: Simplify selector flags setup even more 2023-08-16 17:46:41 +02:00
stylesheets style: Drop @scroll-timeline rule entirely 2023-11-03 08:59:49 +01:00
use_counters style: Support css use counters for unimplemented properties. 2019-09-12 22:34:16 +02:00
values style: Implement <tabpanels> and <deck> without XUL layout 2023-11-03 08:59:49 +01:00
animation.rs Stop transitioning properties with a discrete animation type (#30565) 2023-10-20 12:55:33 +00:00
applicable_declarations.rs style: More container queries plumbing 2023-08-16 17:46:41 +02:00
attr.rs Miscellaneous build / tidy fixes. 2021-02-26 17:53:55 +01:00
author_styles.rs style: Run rustfmt on servo/components/style and servo/ports/geckolib 2023-06-09 10:22:19 +02:00
bezier.rs style: Port bezier edge cases handling from C++ to Rust 2023-10-02 14:37:19 +00:00
bloom.rs Further changes required by Servo 2023-05-27 05:59:01 +02:00
build.rs Make the choice of layout runtime setting 2023-07-06 14:49:24 +02:00
build_gecko.rs style: Fix warnings about whitelist/blocklist functions being deprecated in bindgen 0.59 2023-08-16 17:46:41 +02:00
Cargo.toml style: Update stylo to itertools:0.10, itoa:1.0 and toml:0.5 2023-10-02 14:37:19 +00:00
context.rs style: Simplify selector flag setting now that flag setting is atomic 2023-08-16 17:46:41 +02:00
custom_properties.rs Further changes required by Servo 2023-08-16 17:46:41 +02:00
data.rs style: Move size of tests to compile-time tests in the style crate 2023-08-16 17:46:41 +02:00
dom.rs Further changes required by Servo 2023-10-02 14:37:19 +00:00
dom_apis.rs style: Simplify selector flags setup even more 2023-08-16 17:46:41 +02:00
driver.rs style: Use ThreadPool::scope_fifo in style 2023-06-09 10:22:25 +02:00
encoding_support.rs style: Remove some unused extern crate declarations now that style is in rust 2018. 2020-06-18 23:51:18 +02:00
error_reporting.rs style: Run rustfmt on servo/components/style and servo/ports/geckolib 2023-06-09 10:22:19 +02:00
font_face.rs style: Update font-tech feature-* keywords to features-*, as per editorial fix in the spec 2023-11-03 08:59:49 +01:00
font_metrics.rs style: Use ScriptPercentScaleDown and ScriptScriptPercentScaleDown constants 2023-11-03 08:59:49 +01:00
global_style_data.rs Further changes required by Servo 2023-08-16 17:46:41 +02:00
lib.rs style: 0% values are not skipped when parsing CSS transform 2023-11-03 08:59:49 +01:00
logical_geometry.rs Temporarily convert more cfg(debug_assertions) crashes to warnings (#30590) 2023-10-20 10:19:41 +00:00
macros.rs style: Move line-clamp out of mako and do some adjacent clean-up 2023-11-03 08:59:49 +01:00
matching.rs style: Drop the usage of @scroll-timeline from animation builder 2023-11-03 08:59:49 +01:00
parallel.rs Layout-2020: Fix debug mode crash for servo.org 2023-05-26 20:09:50 +05:30
parser.rs Rustfmt. 2021-02-26 16:44:05 +01:00
piecewise_linear.rs style: linear(...) easing: Implement right-continuous behaviour on discontinuities 2023-10-02 14:37:19 +00:00
README.md Update link 2020-04-28 09:09:54 -07:00
rule_cache.rs style: Undo minor debugging change. 2019-11-30 20:45:07 +01:00
rule_collector.rs style: More container queries plumbing 2023-08-16 17:46:41 +02:00
rustfmt.toml Disable formatting for components/style/ 2023-05-15 17:45:25 +02:00
scoped_tls.rs Replace ScopedTLS::unsafe_get by ScopedTLS::into_slots 2020-04-05 01:20:39 +02:00
selector_map.rs Further changes required by Servo 2023-10-02 14:37:19 +00:00
selector_parser.rs style: Disallow forgiving selector-parsing in @supports 2023-11-03 08:59:49 +01:00
shared_lock.rs style: Run rustfmt on servo/components/style and servo/ports/geckolib 2023-06-09 10:22:19 +02:00
str.rs Miscellaneous build / tidy fixes. 2021-02-26 17:53:55 +01:00
style_adjuster.rs Further changes required by Servo 2023-11-03 08:59:49 +01:00
style_resolver.rs style: Simplify selector flags setup even more 2023-08-16 17:46:41 +02:00
stylesheet_set.rs style: Share CascadeData instances across ShadowRoots 2023-05-16 13:00:08 +02:00
stylist.rs style: Drop @scroll-timeline rule entirely 2023-11-03 08:59:49 +01:00
thread_state.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
traversal.rs style: React to font-size changes on query containers 2023-11-03 08:59:49 +01:00
traversal_flags.rs style: Cleanup unused style traversal flags. 2019-04-12 12:20:07 +02:00

servo-style

Style system for Servo, using rust-cssparser for parsing.