aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/meta/css/css-text/parsing
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade Stylo to 2024-11-01 (#34322)Oriol Brufau2024-11-212-24/+0
| | | | | | | | | | | | | | | | | * Upgrade Stylo to 2024-11-01 Signed-off-by: Oriol Brufau <obrufau@igalia.com> * Fixup for https://phabricator.services.mozilla.com/D224747 Signed-off-by: Oriol Brufau <obrufau@igalia.com> * Update test expectations Signed-off-by: Oriol Brufau <obrufau@igalia.com> --------- Signed-off-by: Oriol Brufau <obrufau@igalia.com>
* Update web-platform-tests to revision ↵Servo WPT Sync2024-09-011-0/+6
| | | | | b'5d8ec746ed021738e7ee0cee92ad1a1814ba00fe' (#33274) Signed-off-by: WPT Sync Bot <ghbot+wpt-sync@servo.org>
* Update web-platform-tests to revision ↵Servo WPT Sync2024-06-023-9/+6
| | | | b'17375f41ccf41e081764d2786ec535dede108c47' (#32426)
* layout: Add support for `white-space-collapse: break-spaces` (#32388)Martin Robinson2024-05-3011-84/+0
| | | | | | | | | | | | | | This change adds support for `white-space-collapse: break-spaces` and adds initial parsing support for `overflow-wrap` and `word-break`. The later two properties are not fully supported, only in their interaction with `break-spaces`. This is a preliminary change preparing to implement them. In addition, `break_and_shape` is now forked and added to Layout 2020. This function is going to change a lot soon and forking is preparation for this. More code that is only used by Layout 2013 is moved from `gfx` to that crate. Co-authored-by: Rakhi Sharma <atbrakhi@igalia.com>
* Turn white-space into a shorthand (#32146)Oriol Brufau2024-04-295-156/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Bumps Stylo to servo/stylo#37 `white-space` is split into `white-space-collapse` and `text-wrap-mode`: | white-space | white-space-collapse | text-wrap-mode | | ----------- | -------------------- | -------------- | | normal | collapse | wrap | | nowrap | collapse | nowrap | | pre-wrap | preserve | wrap | | pre | preserve | nowrap | | pre-line | preserve-breaks | wrap | | - | preserve-breaks | nowrap | Note this introduces a combination that wasn't previously possible, but I think the existing logic can handle it well enough. The old `allow_wrap()` is replaced by checking whether `text-wrap-mode` is set to `wrap`. The old `preserve_newlines()` is replaced by checking whether `white-space-collapse` is *not* set to `collapse`. The old `preserve_spaces()` is replaced by checking whether `white-space-collapse` is set to `preserve`.
* Update web-platform-tests to revision ↵Servo WPT Sync2024-03-101-0/+9
| | | | b'd9a5cc25fc5f520bde022cee67e9e6a6f0b588f9' (#31599)
* Enable `css-text` explicitly in include.ini (#31502)Mukilan Thiyagarajan2024-03-052-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Enable `css-text` explicitly in include.ini The WPT test runner has some strange logic for determining the key's value for a node like `[css]` or `[css-text]`. In this logic, if the node doesn't have an explicit value for a key (here `skip`), then the implicit root node's setting (i.e key/value pair at the top of the file that is not nested under a heading) is used as the default fallback value [1]. Only when the implicit root node doesn't have an explicit value set does the logic starts looking at the current node's parent [2]. In our case, in `include.ini` the default value for `skip` is `true` as that is the first line in the file. Since `[css-text]` doesn't have `skip` set explicitly, the default value of `true` is used even though the parent's value is `false`. [1]: https://github.com/servo/servo/blob/2bafcf9f182bf907c4a4391f931a7364bd7b804f/tests/wpt/tests/tools/wptrunner/wptrunner/wptmanifest/backends/conditional.py#L265 [2]: https://github.com/servo/servo/blob/2bafcf9f182bf907c4a4391f931a7364bd7b804f/tests/wpt/tests/tools/wptrunner/wptrunner/manifestinclude.py#L59 Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * Update text expectations --------- Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> Co-authored-by: Oriol Brufau <obrufau@igalia.com>
* layout: Add initial support for `text-transform` (#31396)Martin Robinson2024-02-222-81/+0
| | | | | | | | | | | | | This adds basic support for `text-transform` in a way that is more complete than legacy layout. There are still many missing elements of proper `text-transform` support such as: 1. Support for `full-width` and `full-size-kana` 2. Support for grapheme based uppercasing, lowercasing, and capitalization. These are all done per-code point right now. 3. Support for the language-specific `SpecialCasing.txt` cases for case mapping such as the ones for Irish and Turkish. Co-authored-by: Rakhi Sharma <atbrakhi@igalia.com>
* Sync WPT with upstream (04-02-2024) (#31256)Servo WPT Sync2024-02-051-0/+42
| | | | | | | | | * Update web-platform-tests to revision b'faa6d42ce21d126155dee771786ad7c74efbcba5' * Update test expectation --------- Co-authored-by: cybai <cyb.ai.815@gmail.com>
* Sync WPT with upstream (28-01-2024) (#31204)Servo WPT Sync2024-01-282-0/+30
| | | | | | | | | * Update web-platform-tests to revision b'bdd3b533e8c995e416630422ad64f4c70086b42f' * Update expectations --------- Co-authored-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Sync WPT with upstream (25-12-2023) (#30938)Servo WPT Sync2023-12-264-0/+30
| | | | | | | | | * Update web-platform-tests to revision b'73caf716542762aab6646f0a02de208bc0ec4124' * Update expectations --------- Co-authored-by: sagudev <16504129+sagudev@users.noreply.github.com>
* layout: Add support for `text-align-last` (#30905)Martin Robinson2023-12-212-42/+0
| | | | | | | | This change adds support for `text-align-last` as well as ensuring that it also applies to lines before forced line breaks. Two tests start to fail because they rely on right-to-left text to pass: - /css/css-text/text-align/text-align-last-010.html.ini - /css/css-text/text-align/text-align-last-011.html.ini
* Add basic support for `text-align: justify` (#30807)Martin Robinson2023-12-153-27/+0
| | | | This also enables parsing of `text-justify` for non-legacy layout, though only None is supported (disabling justification).
* Sync WPT with upstream (29-10-2023) (#30641)Servo WPT Sync2023-10-315-0/+132
| | | | | | | | | | * Update web-platform-tests to revision b'9f24a7061dc47c00ffe3f0f6dda5822a9b15c2a5' * Update expectations --------- Co-authored-by: sagudev <16504129+sagudev@users.noreply.github.com> Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
* Sync WPT with upstream (24-10-2023) (#30607)Servo WPT Sync2023-10-253-0/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | * wpt sync: adapt code for new TestRoot class Fixes #30558 Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * temp change to allow wpt sync build to pass Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * Update web-platform-tests to revision b'0d5028f200c8651b17bb224657d6e1065adcff37' * Revert "temp change to allow wpt sync build to pass" This reverts commit bad72c7f87c0df16085763ee15ebe63a53462ab3. * revert metadata update for intermittent timeouts Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> --------- Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
* Sync WPT with upstream (04-10-2023) (#30493)Servo WPT Sync2023-10-0611-30/+216
| | | | | | | | | | | | | | | * Update web-platform-tests to revision b'dfda99176a5d552fb1129fa353b7e4c69f6ed92c' * fix linter errors after WPT import Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> * Update expectations --------- Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com> Co-authored-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Run same tests for layout-2020 and layout-2013 (#30092)Oriol Brufau2023-08-1525-6/+303
| | | | | | | | | | Most tests were only being run for layout-2013, not for layout-2020. This wasn't great since layout-2020 is now the default. So this patch unifies the lists of included tests for both layouts. For layout-2013 this implies adding css/css-content/, css/css-logical/ and css/css-masking/clip/. For layout-2020 this implies adding several additional css tests, and also tests like dom/, js/, html/, etc.
* Rename metadata directoriesMartin Robinson2023-06-2225-0/+567
This renames: - `tests/wpt/metadata` → `tests/wpt/meta-legacy-layout` - `tests/wpt/metadata-layout-2020` → `tests/wpt/meta` - `tests/wpt/mozilla/meta` → `tests/wpt/mozilla/meta-legacy-layout` - `tests/wpt/mozilla/meta-layout-2020` → `tests/wpt/mozilla/meta`